[fpc-pascal]How to shrink the executable size?

xhajt03 at mbox.vol.cz xhajt03 at mbox.vol.cz
Sun Oct 1 07:18:33 CEST 2000


   Hello,

> before.The size of (DOS-GO32V2) executables still is (even after
> applying the optimizations mentioned in the FAQ) very large, a simple
> test program with a single "ClrScr" and "WriteLn" statement is about 62
> KB. When I use UPX to compress it, it shrinks to 26 KB, but still the
> external CWSDPMI.EXE is required. Exactly the same source compiles under

 I suspect you didn't use a smartlinking RTL. You have to make the RTL yourself from sources with the appropriate parameter for smartlinking. Only Win32 snapshots are being created with a smartlinking RTL by default currently, IIRC.
 BTW, CWSDPMI.EXE is only required if you don't have another DPMI server running on your PC (i.e. under plain DOS only).

                Have a nice day

                            Tomas Hajny





More information about the fpc-pascal mailing list