|Large structures email@example.com (Andrzej Wasowski) (2002-06-13)|
|Re: Large structures firstname.lastname@example.org (Scott Nicol) (2002-06-14)|
|Re: Large structures email@example.com (Andreas Krall) (2002-06-14)|
|From:||"Andreas Krall" <firstname.lastname@example.org>|
|Date:||14 Jun 2002 15:13:12 -0400|
|Organization:||Vienna University of Technology, Austria|
|Posted-Date:||14 Jun 2002 15:13:12 EDT|
"Andrzej Wasowski" <email@example.com> 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
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
GCC (Intel and Sparc) works, but had compilation times around 15
Visual C worked partly (had some obscure bug).
All of these compilers had no internal limits
firstname.lastname@example.org 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
Search the comp.compilers archives again.