🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1258

Re: "Broken" compilers

#1258
From: Larry Jones
Date: Tue, 01 May 1990 21:20
27 lines
1673 bytes
In article <1626@tkou02.enet.dec.com>, diamond@tkou02.enet.dec.com (diamond@tkovoa) writes:
> In article <1990Apr26.125851.20728@contact.uucp> ross@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@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
Technical Details
Message-ID: <1374@sdrc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!sdrc!scjones
References: <1990Apr25.165602.974@craycos.com> <1626@tkou02.enet.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!sdrc!scjones
From: scjones@sdrc.UUCP (Larry Jones)
Newsgroups: comp.std.c
Subject: Re: "Broken" compilers
Message-ID: <1374@sdrc.UUCP>
Date: 1 May 90 21:20:48 GMT
References: <1990Apr25.165602.974@craycos.com> <1626@tkou02.enet.dec.com>
Organization: SDRC, Cincinnati
Lines: 27