Neil's News

Polyglot 11: C

20 November 2004

[Colours in VGA] Eleventh is C. The only Wintel C compiler I have at my fingertips is Turbo C 2.01. 16-colour VGA is the highest supported graphics mode, so the output is pretty nasty. More seriously, any attempt to malloc a structure larger than ~64k results in a program crash (switching to the large memory model results in a system crash). This severely limits the size of the image. It took a 16 year old compiler, but I think I've finally managed to find an implementation worse than Python's.

Here's the C source code, and the DOS executible.

< Previous | Next >

 
-------------------------------------
Legal yada yada: My views do not necessarily represent those of my employer or my goldfish.