Creating functions in data space
Nathan Glasser
nathan at mit-eddie.MIT.EDU
Thu Mar 6 23:27:47 AEST 1986
A couple of years ago there was a "contest" on usenet for the most
obscure/unreadable C code. The winner was a program which was of the form
char *main[] = { ... };
Where ... is a sequence of bytes. I remember that they were given in
all the possible ways: some in decimal, some octal, some hex, some characters.
There was only 1 file, and it compiled and ran fine on vaxen, and I think
was supposed to work on pdp's too. I think it did some little tiny
animated type thing using backspaces to erase and move something across
the line.
Anyway, isn't this putting code into the data space?
Nathan Glasser
nathan at mit-eddie.uucp
nathan at mit-xx.arpa
More information about the Comp.lang.c
mailing list