[gambit-list] How to create small standalone executable with

Adrien Piérard pierarda at iro.umontreal.ca
Mon Aug 17 09:57:50 EDT 2009


>     I installed Quantz for Mac OS X this weekend and the executable
> is just 24kB. I could not find a Gambit framework in the application
> bundle, nor in /Library. I wonder how they did that...

Well, I do not know the background of the programmers, but as I have
been very close to the "demoscene", there are some tricks I know:
- use a home made linker
- use a (de)compressor
- fork the compiler to keep only what you need (which *can* be an
option if you have time for that, and will get money back too)
- hide the framework in the README.TXT (yeah, that's cheating…)
- check if the framework is not already on the system prior to
deciding whether you install it or not…

By the way, if you're on a mac, you should be able to ltrace, ktrace
and strace the program.
If the framework is somewhere else, you'll find it quickly I guess.
Just be sure that {l,s,k}tracing the binary is legal (I don't know if
that's considered debugging and/or reverse engineering).

P!

-- 
Français, English, 日本語, 한국어



More information about the Gambit-list mailing list