I have downloaded the pascal version of critter for study.
I saw that the size of the executable is 250 kb. How is this possible with all the data insize it??
size of executable
Moderator: Ras
-
mar
- Posts: 2675
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: size of executable
Why not? Depends on how many things like what you link dynamically, whether you use executable compressor (UPX, mew, mpress, kkrunchy and many more) and of course whether you store data or generate them.
There are full 3d intros that fit in 64k, they generate geometry and textures procedurally and use softsynths for music.
There are even 4k programs that can do speech synthesis and render simple 3d scenes.
You can fit a mandelbrot fractal zoomer in 256 bytes and of course more, I have seen awesome 256-byte programs.
I have seen rotozoomer in 51 bytes.
Don't believe? Visit pouet.net
So why not? A chess program is relatively simple.
There are full 3d intros that fit in 64k, they generate geometry and textures procedurally and use softsynths for music.
There are even 4k programs that can do speech synthesis and render simple 3d scenes.
You can fit a mandelbrot fractal zoomer in 256 bytes and of course more, I have seen awesome 256-byte programs.
I have seen rotozoomer in 51 bytes.
Don't believe? Visit pouet.net
So why not? A chess program is relatively simple.