"Broken" compilers

Larry Jones scjones at sdrc.UUCP
Wed May 2 07:20:48 AEST 1990


In article <1626 at tkou02.enet.dec.com>, diamond at tkou02.enet.dec.com (diamond at tkovoa) writes:
> In article <1990Apr26.125851.20728 at contact.uucp> ross at contact.UUCP (Ross Ridge) writes:
> >The macro a expands to 5 517 094 707 031 349 characters.
> 
> Yeah, I thought that was greater than 509.  I tried to run a program to check
> whether 5 517 094 707 031 349 was greater than 509, but got an error message.
> Actually the logical line is a bit longer than that, because there are a few
> more characters on the same source line outside of the macro invocation.
> 
> To repeat Peter Klausler's statement:
> <	 - does not exceed (or approach) any of the limits in 2.2.4.1
> 
> give or take a limit, eh?

If you check the phases of translation, however, logical lines
are a well-defined concept that occur BEFORE macro expansion.
Since the preprocessor grammar is token based, the result of
preprocessing is a stream of tokens, not logical lines, so the
size of the result is not subject to the logical line length
limit!
----
Larry Jones                         UUCP: uunet!sdrc!scjones
SDRC                                      scjones at SDRC.UU.NET
2000 Eastman Dr.                    BIX:  ltl
Milford, OH  45150-2789             AT&T: (513) 576-2070
"You know how Einstein got bad grades as a kid?  Well MINE are even WORSE!"
-Calvin



More information about the Comp.std.c mailing list