Re: Large structures

"Andreas Krall" <>
14 Jun 2002 15:13:12 -0400

          From comp.compilers

Related articles
Large structures (Andrzej Wasowski) (2002-06-13)
Re: Large structures (Scott Nicol) (2002-06-14)
Re: Large structures (Andreas Krall) (2002-06-14)
| List of all articles for this month |

From: "Andreas Krall" <>
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" <> 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

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

-- Andreas Krall Inst. f. Computersprachen, TU Wien
tel: (+431) 58801/18511 Argentinierstr. 8/4/1851
fax: (+431) 58801/18598 A-1040 Wien AUSTRIA EUROPE

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.