how to create small DJGPP binaries? (Developers)
> > Besides compressing with UPX, how can I create smaller DJGPP binaries?
> > or say, which DJGPP gcc creates smaller binaries? any compiler switches
> can
> > reduce binary size without performance impact?
> > Can OpenWatcom C drop-in replacing DJGPP gcc here?
>
> There's not much to do, you can revert to older versions of DJDEV and GCC
> as newer makes bigger code. I observed that during time the compressed size
> of simple exe growed about 15kB from old gcc 3.x to latest 4.7.2. It's not
> so much. You can save some space using CRT flags to disable some functions
> like command line processing - if you dont need e.g. wildcards expansion,
> environment... this can save some kB. Also you can implement your own
> better libc. Small command line utils I wrote are usually 50-60kB after
> compression, one complex tool about 100kB, not bad for me...
hmm.
with old gcc 2.7.2.3, it does reduce a bit.
the final product, lha for Unix 1.14i-ac compiled and compressed and D3X-stubbed:
http://roy.orz.hm/soft/lha_d3x.exe 84,976 bytes
BTW I made D3X with apack compressed stubs working by accident! When I'm debugging why compressed stub not working by adding debug instructions in exitErr, it works compressed! so d3xd(the coff stub) is now 7KB! Sources and binary here:
http://roy.orz.hm/soft/d3x090h-apack.7z
D3X-apack-stubbed:
http://roy.orz.hm/soft/lha_d3x_.exe 81,904 bytes
Complete thread:
- how to create small DJGPP binaries? - roytam, 11.01.2013, 06:52 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- 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
Mix view