Re: What compiler directives do i have to delete in the LAST compilation of my program ?




"nek" <eizo5@xxxxxxxxx> schreef in bericht
news:ecadda$2sfs$1@xxxxxxxxxxxxxxxxxxxxxx
DELPHI 7

Somewhere in the web, in the past, I found something compiler directives
{$... } that i should delete in the final compilation of my program to
make the .exe smaller and my program faster.

The problem is that i don't remember what do i have to do.


You have announced earlier that you are a newbie. In that case: stay away
from compiler directives.
Limit yourself to what is available under Project - Options, compiler and
linker tabs.
For speed you can turn off range checking and overflow checking. The
difference in speed may not be noticeable and you may pay a prize in missing
a bug that shows up in rare cases only.
For size make sure that the linker options do not specify TD32 or remote
debug info.
Tom


.



Relevant Pages

  • Re: Fastcode 2005 Competition
    ... compiler and one set of compiler directives - D2005 Opt on, Range On Overflow On). ... We'll see how long this kind of run takes, validation on some challenges is slow even on faster computers. ...
    (borland.public.delphi.language.basm)
  • Re: Integer arithmetic in hardware descriptions
    ... and they have added to dotnet ways to find when an ... In most "modern" Pascal dialects the overflow checks can be ... enabled or disabled with compiler directives in the source code, ...
    (comp.lang.python)