What does the compiler think I am doing here? (C bite?)
Joe Chapman
joe at emacs.uucp
Tue Sep 3 01:45:53 AEST 1985
<>
[ The discussion concerns putting statements like ``37;'' into your C
code. I'm addressing the claim that no known compilers will generate
code for this statement. ]
Well, I once worked with a C compiler on a 68000 which interpreted
statements consisting of a single number as 68K code. It was really
great! You get stuff which looks like this:
printf("hello, world!\n");
i++;
0x00ff12;
if (i > 3) {
And so forth. There was even a kernel include file which declared
spl0 & co. like this:
#define spl0() 0x0012345
Or whatever it was.
--
-- Joseph Chapman decvax!cca!emacs!joe
CCA Uniworks, Inc. emacs!joe at cca-unix.ARPA
20 William St.
Wellesley, MA 02181 (617) 235-2600
More information about the Comp.lang.c
mailing list