🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #740

What's the size limit for a GCC macro expansion?

#740
From: Elizabeth Schwartz
Date: Sat, 12 Dec 1992 04:21
16 lines
1121 bytes
Does anyone know what the limit is, in GNU C, of the size of
a set of pre-processor macro expansions? It appears to be greater than 
16k and less than 64k. 

By this I mean if I write: 
#define FOO(A,B) BAR(A,B) BAR(A,B)
#define BAR(A,B) FRED(A,B) FRED(A,B)

and so on....how big can the result be?  

Thanks, Betsy
--
System Administrator                  Internet: betsys@cs.umb.edu
MACS Dept, UMass/Boston               BITNET:ESCHWARTZ%UMBSKY.DNET@NS.UMB.EDU
100 Morrissey Blvd                    Staccato signals
Boston, MA 02125-3393                      of constant information....
Technical Details
Message-ID: <BETSYS.92Dec11232126@ra.cs.umb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!sdd.hp.com!think.com!paperboy.osf.org!hsdndev!news.cs.umb.edu!betsys

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!sdd.hp.com!think.com!paperboy.osf.org!hsdndev!news.cs.umb.edu!betsys
From: betsys@cs.umb.edu (Elizabeth Schwartz)
Newsgroups: gnu.gcc.help
Subject: What's the size limit for a GCC macro expansion?
Message-ID: <BETSYS.92Dec11232126@ra.cs.umb.edu>
Date: 12 Dec 92 04:21:26 GMT
Sender: news@cs.umb.edu (USENET News System)
Distribution: gnu
Organization: University of Massachusetts at Boston
Lines: 16
Nntp-Posting-Host: ra.cs.umb.edu