|
||||||
| The Lounge Discuss any topics not covered elsewhere in this forum. Kick back, relax and get it off your mind. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
International Obfuscated C Code Contest The International Obfuscated C Code Contest (abbr. IOCCC) is a programming contest for the most creatively obfuscated C code held annually since 1984. The goal is thus to create the most complex and complicated logic for a possibly simple execution!! There are many winning entries each year, and each entry gets a category such as “Worst Abuse of the C preprocessor” or “Most Erratic Behavior”. The IOCCC was started by Landon Curt Noll and Larry Bassel. They were talking together about the horrible code it was their jobs to maintain and this led to an idea. They decided to hold a contest for the worst possible C code! Within the only limit being the code size to a few kilobytes, the contestants manage to do complicated things.A 2004 winner turned out an operating system. Some quotes from 2004 winners include: To keep things simple, I have avoided the C preprocessor and tricky statements such as “if”, “for”, “do”, “while”, “switch”, and “goto”. We still aren’t sure whether or not this is a useful program, but it’s the first atomic fission we’ve seen in the IOCCC. Why not use the program to hide another program in the program? It must have seemed reasonable at the time. The program implements an 11-bit ALU in the C preprocessor. I found that calculating prime numbers up to 1024 makes the program include itself over 6.8 million times. Below is a 1988 entry which calculates pi by looking at its own area: Code:
#define _ -F<00||–F-OO–;
int F=00,OO=00;
main()
{
F_OO();
printf("%1.3f\n",4.*-F/OO/OO);
}
F_OO()
{
_-_-_-_
_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_
_-_-_-_
}
|
|
|||||
|
Sounds like a neat contest!
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Post a job on our freelance section! Paste between computers/devices and Collaborate on Code!. |
|
|||||
|
C is the one I've heard about, mainly because it has so MANY methods of obfuscation available to it.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog |
|
|||
|
Ha ha, the way pi is calculated is funny.
__________________
Make Money Online |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Obfuscated code? Programming contest? | BR Invertia | General Programming | 4 | 04-02-2007 11:15 AM |
Algorithms and Data Structures
Programming Language Popularity
Code Collaboration
Podnet IRC Network
AmpHosted
Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%