how to create small DJGPP binaries? (Developers)
> sorry for bumping, but since there is some years after this reply and I
> wonder if anything is changed in DJGPP 2.05.
> and newer bash-4.1 seems working better.
printf() is much bigger, so it should be avoided, if possible (!). (7ZDEC avoids it.) Symlink support in 2.05 (like in 2.04) adds some bloat.
I'm still not quite sure if --gc-sections is even accidentally supposed to work for DJGPP COFF, but it does halfway work (still), e.g. 7ZDEC (see my MAKEFILE.GNU "SMARTLINK=1"). I tried again this morning with GCC 10.3 and whatever latest BinUtils is, and it seems to save some noticeable space (although UPX'd makes it less pressing).
But DJGPP was never optimized well for size. They just never found the time or motivation. But I'm grateful for what we have.
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