🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Elizabeth Schwartz Sat, 12 Dec 1992 04:21
What's the size limit for a GCC macro expansion?
#740
Author: 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....
ANSWER: Re: What's the size limit for a GCC macro expansion?
#748
Author: Elizabeth Schwartz
Date: Mon, 14 Dec 1992 03:44
10 lines
1092 bytes
Thanks to those, including rms, who responded so quickly. GNU C
doesn't have built-in limits, wherever possible. In my case I was
running out of space in /usr/tmp when my expansion got to be around
64k.
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....
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads