Related articles |
---|
Large structures wasowski@data.pl (Andrzej Wasowski) (2002-06-13) |
Re: Large structures snicol@apk.net (Scott Nicol) (2002-06-14) |
Re: Large structures andi@complang.tuwien.ac.at (Andreas Krall) (2002-06-14) |
From: | "Andreas Krall" <andi@complang.tuwien.ac.at> |
Newsgroups: | comp.compilers |
Date: | 14 Jun 2002 15:13:12 -0400 |
Organization: | Vienna University of Technology, Austria |
References: | 02-06-026 |
Keywords: | C, practice |
Posted-Date: | 14 Jun 2002 15:13:12 EDT |
"Andrzej Wasowski" <wasowski@data.pl> writes:
> Is it possible to declare a structure of arbitrary length in C? I have
> a code generation scheme in mind which uses a structure which might
> happen to have over 2000 fields. Does it conform to ANSI C? Moreover,
> dear compiler writers - do you know if C compilers tend to limit this
> value?
I once did some tests with structures bigger than 64K elements and tried
different compilers with different experiences.
Compaq C on Alpha works perferctly with compilation times less than 3
seconds.
GCC (Intel and Sparc) works, but had compilation times around 15
minutes.
Visual C worked partly (had some obscure bug).
All of these compilers had no internal limits
--
andi@complang.tuwien.ac.at Andreas Krall
http://www.complang.tuwien.ac.at/andi/ Inst. f. Computersprachen, TU Wien
tel: (+431) 58801/18511 Argentinierstr. 8/4/1851
fax: (+431) 58801/18598 A-1040 Wien AUSTRIA EUROPE
Return to the
comp.compilers page.
Search the
comp.compilers archives again.