| MCS' Coding Tips
Preparing your EXE for release
Written by MCS
Tips - "Success"!
Original Wolf 3D
|If you compiled your program with the settings provided with the WOLF3D.PRJ project file included with the ID source code, the size of the EXE file will be around 500K in size.
You can reduce this size by about 50%. To achieve this, you have to modify the Borland settings so that the so-called debug information will be excluded. This will even produce a more stable EXE.
In the Borland menu, choose "Options" and then "Debugger".
Under "Source Debugging", check "None" and hit OK. Recompile and link your project. The new EXE should now be about 264K in size.
You might notice that the EXE is still a lot bigger than the original WOLF3D.EXE, which is about 98K in size. This is due to the fact that ID compressed the original file with the LZEXE-program.
You can download this program here (or you can go to the Utilities section).
To compress your EXE, just type LZEXE WOLF3D.EXE and the compressed version will
be created in seconds. The uncompressed version will be renamed to WOLF3D.OLD.
The final EXE is now ready for distribution.