←back to thread

IOCCC Flight Simulator (2010)

(blog.aerojockey.com)
157 points smig0 | 1 comments | | HN request time: 0.204s | source
Show context
zendist ◴[] No.41904271[source]
How in the world did they come up with the obfuscated code for this? Surely they must be using a tool?
replies(3): >>41904337 #>>41904461 #>>41907406 #
1. thamer ◴[] No.41907406[source]
There are a number of blog posts online and StackOverflow questions explaining IOCCC entries, and they generally seem to be built/obfuscated by hand. It's an art and it's far from trivial, which is one of the reasons why the contest exists :)

For an example, see this StackOverflow question and its detailed answers for an overview of what obfuscation techniques can be used, although many more exist of course: https://stackoverflow.com/questions/15393441/obfuscated-c-co...

I was able to compile it on macOS, but had to include an extra flag to stop clang from being too strict (version 16):

    cc -Wno-implicit-function-declaration -std=c89 -o test test.c
    ./test