[fpc-pascal] special meaning of -dRELEASE

Bernhard Steffen bernhard.steffen at gmx.net
Sun Feb 20 11:59:15 CET 2005

Marc Santhoff wrote:
 >>This is no magic, see fpc.cfg
 > But it looks that way, I was asking myself if I've left something out
 > because the binary shrunk from 520kB to 360kB. ;)

IIRC, defining the symbol RELEASE means compiling in release mode. (Thus 
your internal switch does "interfere" with compiler magic. [*]) 
Depending on your fpc.cfg, this sets further switches like the ones for 
stripping out debug information from the generated binary. Have a look 
into your fpc.cfg for more details.


[*] I'm not sure whether compiling in release mode defines the RELEASE 
symbol or if it's the other way around. Either way, in fpc.cfg some more 
switches get activated when compiling with symbol RELEASE defined.

bernhard.steffen at gmx.net

More information about the fpc-pascal mailing list