tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Segmentation fault compiling jslong.c


From: Gregg Reynolds
Subject: Re: [Tinycc-devel] Segmentation fault compiling jslong.c
Date: Thu, 20 Sep 2007 16:02:12 -0500

On 9/20/07, Rob Landley <address@hidden> wrote:
>
> I'm wondering if there's some circumstance under which it _should_ generate
> code that runs before "main", and if so how I'd go about it.  (The "no, it
> should enver do this" is the easy case to fix, but I'm unsure whether or not
> that's the case...)

Doesn't look like it to me.  See section 6.6 of the c99 draft

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf

Although technically I suppose you could do constant initializations
at run-time instead of translation-time, so long as they're done
before main..  The key point being whether it's a constant expression,
not time of evaluation.

-g




reply via email to

[Prev in Thread] Current Thread [Next in Thread]