nanoSzachy 2.7 & pikoSzachy 2.1
Posted:
03 Jan 2007, 00:01
by Piotr Cichy
Hello!
New versions of nanoSzachy and pikoSzachy are available.
Re: nanoSzachy 2.7 & pikoSzachy 2.1
Posted:
03 Jan 2007, 13:26
by H.G.Muller
It is difficult to estimate the size of a program from the size of its executable. The "hello world" (or actually just "hallo") program is already 3KB with gcc under cygwin (after stripping), a program that does absolutely nothing has an executable of 2KB. (It seems always exactly an integer number of KB.)
Micro-Max has an executable of 6KB. Sice it references printf() I guess this is 3KB for the chess program proper, 2KB for the C run-time system, and 1KB for the stdio library module.
The assembler version of micro-Max that the compiler spits out with the -S option is 921 lines, the (stripped) object file 2948 bytes. That seems an average instruction length of ~3 bytes, which sounds reasonable.