Re: Large structures

"Scott Nicol" <>
14 Jun 2002 13:59:52 -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: "Scott Nicol" <>
Newsgroups: comp.compilers
Date: 14 Jun 2002 13:59:52 -0400
Organization: APK Net
References: 02-06-026
Keywords: C
Posted-Date: 14 Jun 2002 13:59:51 EDT

"Andrzej Wasowski" <> wrote in message
> Is it possible to declare a structure of arbitrary length in C?

ANSI doesn't require it, but most compilers I have worked with support it,
at least up to about 10,000 elements. I haven't tried beyond there. One
exception is (was?) Microsoft's compiler with debugging symbols - I think
the limit is around 4000 elements.

> I have a code generation scheme

Passing machine-generated code through a compiler is a good way to uncover
compiler bugs. If you have to target a large number of C compilers, it can
be difficult to generate code so that it works with all compilers.

Scott Nicol

Post a followup to this message

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