Recent

Author Topic: size of lazarus exe versus delphi exe  (Read 6246 times)

Robert Gilland

  • Full Member
  • ***
  • Posts: 164
size of lazarus exe versus delphi exe
« on: May 13, 2010, 05:24:28 am »
While I like lazarus a lot there are two major problems with it:

1.  Debugger does not retrieve any information other than simple variables. where as delphi will give you stringlist.count lazarus won't.
2.  I can compile a delphi program using exactly the same source with minor differences for XML reading.
- Delphi 100 K ( using run time packages )
- Lazarus 23 MB.

As you can see this is a major issue. Has anyone lookd at sorting this out?

Kind Regards,

Robert.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com

jarto

  • Full Member
  • ***
  • Posts: 106
Re: size of lazarus exe versus delphi exe
« Reply #2 on: May 13, 2010, 07:03:31 am »
The quick answer is: strip the executable and it will be a lot smaller. It's 23 MB because it contains over 20 MB of debugging info.

For a longer answer, refer to the Wiki page. However, I think that page should contain the short explanation right in the beginning. In general people are lazy readers and they can very easily get an idea, that the Wiki page is trying to defend 23 MB executables.

Another small note, which is a bit offtopic. The Wiki page writes, that people should not use UPX (compressed) binaries. UPX is actually really valuable with executables, that are run from a network share. Try this:

- Copy an exe of a big project to a network share.
- Execute it from there.
- Disconnect the network share.
- Try to open a new function or a new form or whatever and you get ugly access violations.

This happens as the executables are not fully loaded to the memory and the OS can't download more of the executable. And this does happen with Delphi executables just as well.

However, if you compress your executable with UPX, they are not vulnerable to this problem.

 

TinyPortal © 2005-2018