
The
source code of the winning programs of the 22nd contest of programs with obfuscated C
code has been published. Ready-made programs of less than 4,096 bytes in size can be in the competition, with the number of significant characters not including spaces, tabs and signs; () should not exceed 2048. However, this year many participants used the exploit for a bug in the program size calculation module, so in 2013, perhaps the most advanced programs for all the years of the competition were submitted to the competition.
For example, it causes sincere admiration for
an 8086-byte 8043-byte emulator (
source code ) with a full set of 8086/186 instructions that supports floppy disks and HDD and PC-speaker.

')
In the emulator, you can run almost any software. The author tested it with operating systems (MS-DOS 6.22, FreeDOS 0.82pl3, Windows 3.0, DESQview 2.8, professional software (Lotus 1-2-3 2.4 and AsEasyAs 5.7 for DOS, Excel 2.1 for Windows, AutoCAD 2.5, WordStar 4), programming languages ​​(QBASIC, GWBASIC, Turbo C ++), games (Carrier Command, Police Quest, free Windows games) and benchmarks (Manifest, Microsoft MSD, InfoSpot, CheckIt). All of the above worked fine.
After installing the emulator, author Adrian Cable (Adrian Cable) offers to download
an HDD image (40 MB) with a set of software for 8086.
Screenshots




True, the author cheated a bit by transferring some of the code to the BIOS, but such a creative “bypass of the rules” of the competition is even encouraged at IOCCC.
Another outstanding program among the 15 winners of the competition is the
work of Christopher Mills, who won the IOCCC competition back in 1993, that is, 20 years ago. After compiling and running the program creates a web server on the port
localhost:8224
localhost:8224
. There you can go to the browser and see a 3D clock that is dynamically rendered and displays the current time.
The source code of the web server / clock / PNG coder / tracer looks like this.

Well, the absolute winner of the competition was another work of Adrian Cable -
the character recognition program in BMP-pictures. With a size of 4096 bytes, this seems to be the smallest OCR program in the world.