Recent

Author Topic: ENORMOUS executables  (Read 54576 times)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
ENORMOUS executables
« Reply #15 on: June 17, 2006, 02:21:54 pm »
Quote
I would like to compile your program. Unfortunately, I don't have ''../epiktimer-0.3/EpikTimer.pas'.


It depends on EpikTimer component. You can find it here:

http://wiki.lazarus.freepascal.org/index.php/EpikTimer

http://prdownloads.sourceforge.net/lazarus-ccr/epiktimer-0.3.zip?download

But be careful that in order for that to work as a real oscilloscope it requires a ISA board I projected and manufactured myself =)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
ENORMOUS executables
« Reply #16 on: June 17, 2006, 02:39:34 pm »
Quote
The reality is that you are an ignorant:


Please Almindor, don´t respond on a agressive manner, it will mostly transform this into a war instead of convince him of why he is wrong.

giacomogd1

  • Guest
ENORMOUS executables
« Reply #17 on: June 17, 2006, 06:41:53 pm »
Quote from: "sekel"
Quote
The reality is that you are an ignorant:


Please Almindor, don't respond on a agressive manner, it will mostly transform this into a war instead of convince him of why he is wrong.


Never mind, sekel. I can be partially wrong, but not completely.

With any option activated, with any compression method engaged, freepascal executables are at least 3 times bigger than Delphi ones. This is a fact. Relevant or irrelevant? That's another matter.


Quote
you are NOT comparing Lazarus with anything, Lazarus is NOT the
compiler, it's JUST the IDE.


Oh and as a little addition, consider it a metonymic expression (http://www.thefreedictionary.com/metonymic). You are punctilious only when it's good for you. I understand that truth can hurt.  :D

euthymos

  • New Member
  • *
  • Posts: 15
ENORMOUS executables
« Reply #18 on: June 17, 2006, 06:53:27 pm »
Quote from: "Almindor2"

That's 23kb for you boy.


That's 23kb for YOU, man.

I've compiled helloworld program under Windows with the SAME options you kindly suggested me, and it takes 143 KB if not UPX-ed.

Maybe it's my own ignorance that "influences" my computer. Well, I'm sorry sir, you're always right.

Sorry for using multiple usernames. I didn't mean to (cookie problems...).

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
ENORMOUS executables
« Reply #19 on: June 17, 2006, 07:35:18 pm »
Quote
With any option activated, with any compression method engaged, freepascal executables are at least 3 times bigger than Delphi ones. This is a fact. Relevant or irrelevant? That's another matter.


This fact alone is meaningless. The relevancy of this is the most important part on the discussion.

Hello worlds are not real world applications, they are useless, and optimizing a compiler / ide to produce the best hello world is a complete lost of time. Lazarus is optimized for real world application, at the cost of producing bad hello worlds (a good trade off in my opinion).

And yes I agree, the executable is 3 times bigger then with Delphi. That suggests what everyone already knows: Delphi is a great tool for Windows development, the best I would say.

Free Pascal / Lazarus were created with other things in mind, specifically the following:

* They are Free Software
* They support many, many architectures and operating systems

The initial executable size is a trade-off to have the benefits of other things they provide to us.

There is something that you probably didn't think of: The same project can be compiled with both Delphi and Free Pascal. So it's not a question of one or the other, you can use both.

If in your particular case you have money to buy Delphi, you don't care about any other architecture/operating system other then Windows for 32-bits x86, then maybe you should stick with Delphi.

euthymos

  • New Member
  • *
  • Posts: 15
ENORMOUS executables
« Reply #20 on: June 17, 2006, 07:45:52 pm »
Quote
And yes I agree, the executable is 3 times bigger then with Delphi.

Oh no! You just have to strip, optimize, compress, inflate, deflate, zip, wash and dry it  :lol:  Still takes too much? You're an ignorant...


Quote
There is something that you probably didn't think of: The same project can be compiled with both Delphi and Free Pascal.

Well, import function does not work at all, but that's not a problem...


Quote
If in your particular case you have money to buy Delphi, you don't care about any other architecture/operating system other then Windows for 32-bits x86, then maybe you should stick with Delphi.


I'm using an old Delphi version I've bought years ago. And I DO care about other operating systems, that's the reason why I tried to switch to FreePascal/Lazarus/however-you-call-it.

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
ENORMOUS executables
« Reply #21 on: June 17, 2006, 11:05:36 pm »
I think it would be beneficial to us all if you simply left somewhere and payed for whatever superior tool you fancy which will make you whatever sized executables you require hmm?

It's evident that you can't even get a few switches right or read one FAQ.

Try it with -XX -Xs and you should get my result more or less same on all platforms.

Still, I'm wasting my time here so why don't you go away huh?

euthymos

  • New Member
  • *
  • Posts: 15
ENORMOUS executables
« Reply #22 on: June 18, 2006, 12:24:44 am »
Quote from: "Almindor2"
I think it would be beneficial to us all if you simply left somewhere and payed for whatever superior tool you fancy which will make you whatever sized executables you require hmm?

It's evident that you can't even get a few switches right or read one FAQ.

Try it with -XX -Xs and you should get my result more or less same on all platforms.

Still, I'm wasting my time here so why don't you go away huh?


Ok fine. Keep on skipping problems (Linux-style).

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
ENORMOUS executables
« Reply #23 on: June 18, 2006, 12:24:58 am »
I think it´s time to end this topic. All relevant aspects have already being discussed and we are heading away from the subject, so please don´t continue this topic (or I might get tempted to use the "lock topic" button).

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
ENORMOUS executables
« Reply #24 on: June 18, 2006, 12:26:51 am »
Quote from: "sekel"
I think it´s time to end this topic. All relevant aspects have already being discussed and we are heading away from the subject, so please don´t continue this topic (or I might get tempted to use the "lock topic" button).


Yes, please... DNFTT  :roll:

Marmin_

  • Guest
Gladly
« Reply #25 on: June 18, 2006, 12:37:23 am »
Fix the problem if you don't like it!  .. it's open source.  :twisted:

A year ago I also was a bit of a exe size freak, but if one goes developing a larger project, those starting sizes mean nothing. (a 32 bit 512x512 tga bitmap is already 1 mb and i use a lot).1 Mb for an empy project is fine. Remember the task- making the code work on several different systems.

CCRDude

  • Hero Member
  • *****
  • Posts: 615
RE: Gladly
« Reply #26 on: June 18, 2006, 09:28:25 am »
Suggestion: a read-only sticky topic that lists the reasons and ways to reduce the size? This question seems to have appeared a dozen times since I've found these forums already ;)

I know there's a FAQ, but a quick look into the General section of that, that page didn't include even the wird "size". A sticky could mention one or two of the most common questions, and then point to the FAQ :)

euthymos

  • New Member
  • *
  • Posts: 15
Re: RE: Gladly
« Reply #27 on: June 18, 2006, 10:05:26 am »
Quote from: "CCRDude"
Suggestion: a read-only sticky topic that lists the reasons and ways to reduce the size? This question seems to have appeared a dozen times since I've found these forums already ;)


Appeared a dozen of times but no real solutions found, because the reason is simply that the compiler is crap (like someone said before).

I know Lazarus is free and opensource (and it is also a young project), so I understand that some problems are connatural.

I do appreciate people saying "That IS a problem, but it's hard to fix it so it won't be fixed in such a short time."
But I can not suffer people cloaking reality and fast-skipping problems.

euthymos

  • New Member
  • *
  • Posts: 15
RE: Re: RE: Gladly
« Reply #28 on: June 18, 2006, 10:18:40 am »
I rebuilt LCL with -XX -Xs -CX options enabled. I've got executables 60% smaller. A single-form "hello world" application takes only 293 KB if stripped and compressed.

Side effects of the rebuild? Never mind. I use two different installs of lazarus, one for the debug and one for optimization.

I (the troll) found a solution which is a horrible hack but works quite well. You should add it into the FAQs.

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
RE: Re: RE: Gladly
« Reply #29 on: June 18, 2006, 02:22:48 pm »
Go away already

 

TinyPortal © 2005-2018