Compiler related question

Blitz3D Forums/Blitz3D Programming/Compiler related question

As Stevie G said, constants are just placeholders for the values assigned to them. At compile time the constant identifiers are replaced by their assigned values, and the values are what gets compiled.

If you're finding the constant identifiers appearing in the compiled executable file, it could be for two reasons. Firstly, you may be compiling in debug mode, in which case a lot of extra information is probably being added to allow the debug routines to do meaningful error reporting. Secondly, the portable executable file format is used for both exe and dll (dynamic link library) files, and it contains extra info intended for use by dll files which is generally redundant in exe files. Some or all of this redundant info could probably be removed by stripping off the relocation section in the exe. You'll find a link to a free tool which can strip off the relocation section below.

http://www.jrsoftware.org/striprlc.php