Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

how to create small DJGPP binaries? (Developers)

posted by RayeR Homepage, CZ, 11.01.2013, 10:56

> 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...

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 174 users online (0 registered, 174 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum