Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site opus.UUCP Path: utzoo!linus!decvax!genrad!panda!talcott!harvard!seismo!hao!nbires!opus!rcd From: rcd@opus.UUCP (Dick Dunn) Newsgroups: net.lang.c Subject: Re: What does the compiler think I am doing here? (C bite?) Message-ID: <41@opus.UUCP> Date: Wed, 11-Sep-85 00:07:28 EDT Article-I.D.: opus.41 Posted: Wed Sep 11 00:07:28 1985 Date-Received: Thu, 12-Sep-85 23:35:04 EDT References: <648@ihu1m.UUCP> <20@opus.UUCP> <146@emacs.uucp> Organization: NBI,Inc, Boulder CO Lines: 28 > [ 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: > ... > 0x00ff12; > ... Great? Well, it's cute, but the compiler is dead wrong...it's a pretty radical change to C's semantics. (Gee, I wonder if an expression like "i+j;" would compute the sum, store it, and execute the result?:-) Seems to me that this little extension could get into a dandy fight with some obscure macros and a clever optimizer. Aaaack. > And so forth. There was even a kernel include file which declared > spl0 & co. like this: > > #define spl0() 0x0012345 > ...(or whatever) "And so forth"??? Sounds a bit like Forth, right?! (but certainly not forthright...) -- Dick Dunn {hao,ucbvax,allegra}!nbires!rcd (303)444-5710 x3086 ...Relax...don't worry...have a homebrew.