News for hackers. Stuff that matters.
Re:An 8086 PC emulator in 4043 bytes by petercooper on Saturday January 04, 2014 @03:00PM (#7012627)
No, just passed through gcc -E which essentially preprocesses the file only (in this case in order to unpack all the defines) without fully compiling.
Re:An 8086 PC emulator in 4043 bytes by midas007 on Sunday January 05, 2014 @12:40AM (#7014732)
For those that don't know C, basically preprocessing (cpp, gcc -E, clang -E) is one of the first steps to occurs before the C compiler is invoked. It's easiest to think of the preprocessor as a templating language that can be used (or abused) to DRY up code and make it easier to maintain and customize. So the only thing that ever really gets compiled is the amalgamated processed .c files altered and configured by .h files and preprocessor options.
Re:An 8086 PC emulator in 4043 bytes by faragon on Saturday January 11, 2014 @05:42AM (#7042255)
In this case, even with the preprocessor and using "indent", the code is non-understandable. It requires a huge effort of deobfuscation (operator precedence mess, re-"macrofy" the code -as after expansion is very redundant, etc.). From the 4KB it goes to 30KB. After re-"macrofying" the code it drops to 15KB of somehow understandable code. It is a beautiful piece of code, no doubt.