how to create small DJGPP binaries? (Developers)
This is a discussion that could go on forever. Unfortunately, most people aren't interested, hence the difficulty in discovering good answers (sigh). Honestly, I wouldn't worry too too hard about it unless you're just super obsessed! BTW, OpenWatcom can indeed make smaller (esp. 16-bit) binaries, but it depends on what you're trying to do, how standard (C89, C99) you need support and how much OpenWatcom supports (esp. libc).
Here's just some rough ideas off the top of my head:
* check linker map (mkdir() function pulling in ctime.o without reason?)
* recompile (parts of) libs with -Os or -O1 ("ar rvs libblah.a smaller.o")
* recompile (parts of) libs with stripped functionality or hand-written assembly
* avoid printf (and related) in lieu of _dos_write (etc.)
* use empty cmdline glob function
* 2.03p2 (no true symlink support in libc)
* strip ("gcc -s" or "ld -s" or "strip blah.exe")
* compare various (-O1 or -Os or -O2) with UPX --ultra-brute --small
* -fomit-frame-pointer
* -fno-align-functions, -fno-align-labels, -fno-align-loops, -fno-align-jumps
* -march=i386, -march=i486, -march=i586
* don't bind DPMI host, use default 2 kb stub, leave CWSDPMI separate
Complete thread:
- how to create small DJGPP binaries? - roytam, 11.01.2013, 06:52 (Developers)
- how to create small DJGPP binaries? - RayeR, 11.01.2013, 10:56
- how to create small DJGPP binaries? - roytam, 12.01.2013, 14:27
- how to create small DJGPP binaries? - Laaca, 11.01.2013, 16:18
- how to create small DJGPP binaries? - RayeR, 11.01.2013, 19:26
- how to create small DJGPP binaries? - georgpotthast, 11.01.2013, 22:27
- how to create small DJGPP binaries? - Arjay, 12.01.2013, 12:43
- how to create small DJGPP binaries? - RayeR, 12.01.2013, 21:35
- how to create small DJGPP binaries? - marcov, 14.01.2013, 09:48
- how to create small DJGPP binaries? - Arjay, 12.01.2013, 12:43
- how to create small DJGPP binaries? - georgpotthast, 11.01.2013, 22:27
- how to create small DJGPP binaries? - RayeR, 11.01.2013, 19:26
- how to create small DJGPP binaries? - Rugxulo, 13.01.2013, 21:25
- how to create small DJGPP binaries? - roytam, 14.01.2013, 04:52
- how to create small DJGPP binaries? - Rugxulo, 14.01.2013, 15:30
- how to create small DJGPP binaries? - roytam, 28.10.2021, 16:03
- how to create small DJGPP binaries? - kerravon, 28.10.2021, 21:45
- how to create small DJGPP binaries? - roytam, 29.10.2021, 14:38
- how to create small DJGPP binaries? - kerravon, 29.10.2021, 15:54
- how to create small DJGPP binaries? - tkchia, 30.10.2021, 07:29
- how to create small DJGPP binaries? - kerravon, 29.10.2021, 15:54
- how to create small DJGPP binaries? - roytam, 29.10.2021, 14:38
- how to create small DJGPP binaries? - Rugxulo, 01.11.2021, 14:03
- how to create small DJGPP binaries? - kerravon, 28.10.2021, 21:45
- how to create small DJGPP binaries? - roytam, 14.01.2013, 04:52
- how to create small DJGPP binaries? - RayeR, 11.01.2013, 10:56