marcov wrote:And if you use modern (read: 32-bit) tools, always disable the option to discard unused code (--gc-sections and friends on GCC, -XX "smartlinking" on FPC). Dead code optimization requires a disproportionate amount of memory.
DJGPP's COFF doesn't support that, nor does PE/COFF (last I checked). GCC's online manual (3.10 Options That Control Optimization) only says it's supported by "most ELF systems, SPARC/Solaris 2, and maybe AIX in the future".