Small executables

Started by
5 comments, last by alt_nick 19 years, 3 months ago
Hi, I was wandering about something I saw on the internet: GameTutorials These are very little executables but the length of the 'movie' are amazing, and my question is how do they do that? I use VC++ 7 or Delphi, but I never get such small executables even when only compiling the main function :) Any ideas? Thanks, Starik
Advertisement
Read here:

http://www.theprodukkt.com/theprodukkt.html
So if I understand it correctly, the basis of .theprodukkt is that everything is done in run-time, and textures and such are 'calculated' in procedures and not stored as data?

And incredibly those demos (including a music player with 12 mods) are stored in only 64K!!!
You have seen that when you write a simple "hello world" app you start from 50K or above!
To reduce the size of the executable so much it is necessary to use win32 assembler programming (for example masm32).
No, those demos are programmed in C++.

What you can do first is get rid of all debug info in your executable.
Then you should take a look for executable packers.

http://upx.sourceforge.net/

Graphics are decompressed when the application is started, or better said, they are generated like explained at the farbrausch site.

Sound is stored in a mod format, or probably fasttracker xm format. The samples may also be generated during startup by fm-synthesis.
I get it, I find it very interesting how they do that, its amazing.

I'm going to find out if I can make something similar too, you can always try, no?

Thanks for your input,

Starik
http://www.catch22.net/tuts/minexe.asp

This topic is closed to new replies.

Advertisement