WARNING: These rules are TENTATIVE
One might think of them as a beta release for the IOCCC that is about to open.
IMPORTANT: All tentative rules and guidelines are subject to change by the IOCCC judges at any time. See both the IOCCC news and the IOCCC Mastodon feed as sometimes the IOCCC judges mention changes there.
See our FAQ on “rules, guidelines, tools feedback” as well as our FAQ on “about asking questions” about these rules. You might also find the FAQ in general useful, especially the FAQ on “how to enter the IOCCC”.
The IOCCC is pending
While the IOCCC is not open now, there is a tentative opening date for the next IOCCC.
Comments and suggestions on these preliminary rules are welcome. See the FAQ for how to suggest, correct or provide feedback about these rules.
29th International Obfuscated C Code Contest Official Rules
Copyright (c) 2025 Leonid A. Broukhis and Landon Curt Noll.
All Rights Reserved. Permission for personal, education or non-profit use is granted provided this copyright and notice are included in its entirety and remains unaltered. All other uses MUST receive prior permission in writing by contacting the judges.
Rules Version
These IOCCC Rules are version 29.15 2025-12-02.
Reminder: be SURE to read the IOCCC guidelines.
Rule 0 - Dates
The above dates and times may change AT ANY TIME until the contest status is open.
See Entering the IOCCC: the bare minimum you need to know.
See FAQ on “How can I comment or make a suggestion on IOCCC rules, guidelines and tools?”.
Rule 1 - C program
See the Guidelines for Rule 1 - C program.
Rule 2 - Size restrictions
Rule 2 requires that your submission satisfy BOTH Rule 2a
(Gross Size) and Rule 2b (Net
Size).
During development this can be checked using iocccsize(1):
iocccsize prog.c
See the Guidelines for Rule 2 - Size restrictions.
Rule 2a - Gross Size
The overall maximum size of your prog.c program source MUST NOT
exceed 4993 bytes.
See Entering the IOCCC: the bare minimum you need to know.
Rule 2b - Net Size
Check your source code using the latest official IOCCC size tool,
iocccsize(1). The value printed MUST NOT exceed 2503.
See Rule 17 - Use mkiocccentry.
Rule 3 - Register for the IOCCC
You MUST register, using a valid email address, in order to submit to the IOCCC. You may register while the contest is pending or open.
A few days after registering, you’ll receive your UUID username and temporary password, which you MUST change within 14 days.
See How to register for the IOCCC.
See Entering the IOCCC: the bare minimum you need to know.
See Guidelines for Rule 3 - Register for the IOCCC.
Rule 4 - Required files
The remarks.md and Makefile are explained in more detail in the
Guidelines.
See IOCCC markdown guidelines.
See Rule 17 - Use mkiocccentry.
See the FAQ on “What permissions may my files be and what if I need different permissions?”.
See the FAQ on “What are the detailed recommendations for a submission Makefile?”.
See the Guidelines on the mkiocccentry toolkit.
Rule 5 - Do NOT modify submitted files, filenames or parent directories
Your submission MUST NOT modify the filenames or content of any of
your original submission, such as prog.c, Makefile, or ANY
other supplied files. To modify files, your program can make a copy or
you can use the Makefile to setup working copies. Any working copies
MUST be cleaned up by the Makefile clobber target, so as to
restore the directory to its original state.
With the exception of the /tmp and the /var/tmp directories,
assuming the directory name or filename does NOT start with a .
(dot), your submission MUST NOT create or modify directories and
files ABOVE the current directory.
The Makefile clobber target MUST restore your submission to its
original form, including the removal of any created files and
directories.
Rule 6 - Free Rule
I am NOT a Rule, I am a free(void *human); ‼️
while (!(ioccc(rule(you(are(number(6)))))) {
ha(); ha(); ha();
}
See Rule 19 - Prime.
Rule 7 - Original Work
See Rule 16 - Anonymous Judging, and Guidelines for Rule 7 - Original Work.
Rule 8 - Submitting requirements
The submit server will accept submissions ONLY from those who have registered and ONLY while the contest is open and ONLY after you have changed your initial password.
The submit server places a total size limit of 3999971 bytes PER submission.
See Rule 3 - Registering for the IOCCC, Rule 15 - GNU Makefile, and Rule 17 - Use mkiocccentry.
See Guidelines for Rule 8 - Submitting requirements.
Rule 9 - No interactive compiling allowed
Entries requiring human interaction to be initially compiled are NOT permitted. However, see the guidelines on rule 9 as you may suggest alternative compilation steps to do something fun or cute.
Each entry MUST automate the build process using bash, gmake,
gcc and/or clang and other commonly available tools under an SUS
environment.
NOTE: any reference to gmake(1) can be any GNU Make compatible
tool.
NOTE: it is better to use the ${MAKE} variable as then one may
override the make command.
NOTE: it is better to NOT modify ${CC} in your Makefile as
this makes your program more portable.
See Guidelines for Rule 9 - No interactive compiling allowed.
Rule 10 - Program file permissions
Programs that require special privileges (setuid(2), setgid(2),
super-user, special owner, special group, etc.) are HIGHLY
DISCOURAGED. We do NOT guarantee these functions will behave as
you expect on our test platforms.
If your program needs special permissions you MUST document this
fact and explain why it is needed in your submission’s remarks.md
file, preferably close to the top, because mkiocccentry(1) will
NOT set those modes.
Furthermore, if you need a supplementary program that you include to
have these permissions, you will also have to explain this as well,
because these bits are NOT allowed in submissions and those bits
will NOT be copied by mkiocccentry(1) either.
See Rule 4 - Required files, and Rule 5 - Do NOT modify files.
Rule 11 - Legal rule abuse
Legal abuse of the rules is somewhat encouraged, but comes with
risks. A submission that, in the opinion of the Judges, violates
the rules WILL BE DISQUALIFIED. Submissions that plan to abuse the
rules MUST justify why their rule abuse is legal (or interesting)
in the remarks.md file.
Submission packaging abuse will NOT be tolerated and for this reason,
amongst many other reasons, it is recommended that you use
mkiocccentry(1). See also Rule 17 - use
mkiocccentry.
During development you can check your prog.c size limits using
iocccsize(1), e.g., iocccsize -v1 prog.c. Overriding problems
detected by any of the IOCCC tools risks that the submission will be
rejected.
If you do submit a rule abusing or violating submission, then consider also submitting an alternate version in a different submission server slot that does NOT violate the rules in case your rule abuse excuse is rejected.
IMPORTANT: If you do submit such an alternate non-rule abusing
version, PLEASE indicate that in your remarks.md file of your
non-rule abusing version so that the Judges don’t think you uploaded a
duplicate into a wrong slot by mistake.
See Guidelines for Rule 11 - Legal rule abuse.
Rule 12 - UTF-8
Use of UTF-8 is supported by C11 standard and its updates and so too
by the IOCCC.
See Guidelines for Rule 12 - UTF-8.
Rule 13 - No carriage returns in prog.c
Any C source that fails to compile because lines contain
carriage-returns (CTRL+M, \r) in particular as part of DOS/Windows
style newlines might be rejected. Please do NOT put trailing
CTRL+M in prog.c, Makefile, or remarks.md files, but instead end
lines with Unix newline (line-feed, CTRL+J, \n).
You are permitted, in order to try and squeeze your prog.c under a
Rule 2a Gross Size and/or Rule 2b Net
Size limits, to NOT end source with a
newline. If you need to do this, please document that in your
remarks.md file and if your compiler complains about this, document
this too and update your Makefile to account for this.
See Guidelines for Rule 13 - No carriage returns in prog.c.
Rule 14 - Resubmitting lost submissions
Submissions that are substantially similar to previous winning IOCCC entries are discouraged. See the FAQ on “What types of entries have been frequently submitted to the IOCCC?.
You are allowed to resubmit to a later contest, a submission that
didn’t win the IOCCC. If you do so, then you would be WELL ADVISED
to try and enhance and improve your submission. If you do resubmit
something that didn’t previously win, then you are encouraged to
mention this in your remarks.md file as this sometimes helps.
Rule 15 - GNU Makefile
The clobber target MUST clean and restore the submission
directory tree to its original state, such as removing temporary files
or any modified data files. Don’t assume that git tool chain is
installed, i.e. do NOT expect git clean -f to work. To be clear:
do NOT use git to clean out files as this WILL cause problems
in the winner repo!
SHELL= bash
Do NOT assume that . (current directory) is in the $PATH
environment variable.
See FAQ on “What are the detailed recommendations for a submission Makefile?”.
See Guidelines for Rule 15 - GNU Makefile.
Rule 16 - Anonymous judging
Your source code, data files, remarks, and program output MUST NOT identify the author(s) of your code (unless you are Peter Honeyman or pretending to be Peter Honeyman). In order to be impartial the Judges do NOT know who is submitting programs to the IOCCC until final selection is made, and only submissions that won.
Even if you are a past winner, you MUST NOT reveal your identity deliberately or by accident anywhere in your submission. Failure to comply may result in the submission being disqualified.
Rule 17 - Use mkiocccentry
TL;DR: use mkiocccentry(1) to package your submission.
The files, directories, and paths MUST conform to the limits
imposed by mkiocccentry(1), including but NOT limited to, their
names, count, path length, directory tree depth, and permissions.
The submission MUST be a .txz compressed tarball (i.e., tarball
compressed by xz(1)) as constructed by mkiocccentry(1), which
MUST be within [1..3999971] bytes in size.
The tarball MUST be a v7 format tarball, and any supplementary tarballs you provide MUST ALSO be v7 format.
The sum of all file lengths, after unpacking from the tarball, MUST
be less than 27651*1024 (28314624) bytes.
See the FAQ on “What is the mkiocccentry tool, how do I obtain it and how do I use it?”.
See the Guidelines for Rule 17 - Use mkiocccentry.
Rule 18 - Submission license
The entirety of your submission MUST be submitted under the following license:
CC BY-SA 4.0 DEED Attribution-ShareAlike 4.0 International.
Rule 19 - Prime
See Rule 6 - Free Rule.
Further Reading
Please read the Guidelines next for further commentary on these rules.
Read the FAQ on “Entering the IOCCC: the bare minimum you need to know” for an overview of how to enter the contest.
See also the FAQ in general.
And now for something completely different.
Consider joining the IOCCC Discord
Server for discussions about
The Rules, questions for the Judges, and C in general.
Leonid A. Broukhis chongo (Landon Curt Noll) /\cc/\
