Re: BDS2006 exe sizes



On Thu, 23 Feb 2006 18:03:16 +1300, Nicholas Sherlock
<N.sherlock@xxxxxxxxx> waffled on about something:

Ian wrote:
[...]
If the compiler produces a large executable from
such a simple program as those, then they aren't efficient enough in my
book.

Even if the compiler produces executables which are far smaller than the
competition for real projects? Your benchmark is meaningless. If you
want to work with no support for a "Hello World" .exe, then don't use
the VCL or RTL. Code it all from scratch. If you want to get some work
done, stop worrying about your .exe size.

Cheers,
Nicholas Sherlock

I recently had a play with the Free Pascal Compiler and Lazarus, and
was quite impressed so I decided to throw the source of my Suduko
solving program at it to see just how good/bad it was.

First the code compiled first go, no changes required, but the exe was
huge 6meg compared to 400K in D7... So then I decided to do some speed
tests, it might produce huge code (which I could probably trim down
myself with a bit of hand optimising) but blimee does it run fast.
Running my program and solving a 4x4 hex suduko was 3x faster with the
FPC code than D7.

FYI my suduko program uses some huge tlists and self calling
functions, so it looks like FPC is faster with it's tlist handling,
although I haven't checked to see if it's greedier with the memory
when running.

Moral of this story, if you program is 15x bigger, but runs 3x faster,
are you going to complain?

Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
.



Relevant Pages

  • Re: If APL Is So Wonderful, How Come APL Programmers Arent Rich
    ... compiled to a single EXE: ... >> Will APEX allow me to take a set of APL2 functions and produce an .EXE ... Compiler runs under APL+Win today, ...
    (comp.lang.apl)
  • Re: Building EXE Twice Produces Different Files
    ... It think the status bar control pulls in the latest ... project type an Active EXE or Standard EXE under the properties? ... the C2 compiler, but it ends up in the finished executable. ...
    (microsoft.public.vb.general.discussion)
  • Re: How to locate compiled binary code relative to source code?
    ... > I need to be able to identify in the compiled EXE a specific location ... Your best bet is assembly language. ... Have you tried having the compiler print out the assembly language ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (comp.programming)
  • Re: VS2005, x86/x64 build questions
    ... I created a solution with Win32 and x64 platforms and an empty C++ console ... the only changes to the compiler flags are ... there's base addr differences between those built on the XP x86 box and ... The exe is for Itanium. ...
    (microsoft.public.vc.language)
  • Changing the .exe icon compiled stand alone applications
    ... I had a problem with changing the icon of .exe file ... generated by MCC when building a standalone application. ... is launched by MCC to configure compiler. ...
    (comp.soft-sys.matlab)