[Top][All Lists]
[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
- [Tinycc-devel] Segmentation fault compiling jslong.c, Sanghyeon Seo, 2007/09/18
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Gregg Reynolds, 2007/09/20
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Rob Landley, 2007/09/20
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Gregg Reynolds, 2007/09/20
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Rob Landley, 2007/09/20
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Gregg Reynolds, 2007/09/20
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Rob Landley, 2007/09/21
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Dave Dodge, 2007/09/21
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Rob Landley, 2007/09/21
- Re: [Tinycc-devel] Segmentation fault compiling jslong.c, Peter Lund, 2007/09/21