[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PowerPC port of PUPA
From: |
Marco Gerards |
Subject: |
Re: PowerPC port of PUPA |
Date: |
24 Jan 2004 02:40:29 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Johan Rydberg <address@hidden> writes:
> Marco Gerards <address@hidden> wrote:
>
> : > Is there a reason for not having builtins? Is it to eliminate the need
> : > for functions such as memcpy() and puts() (they do not live in the PUPA
> : > namespace) ?
> :
> : Well, this make me think about another problem that I completely
> : haven't considered: You use alloca in your code.
>
> There are two solutions for this. Either use __builtin_alloca directly
> (which should still be available even with -fno-builtins.) or write a
> alloca() function yourself. I really don't like the latter. It is
> "too" low-level, even for a bootloader, and might break things with new
> versions of GCC (even thou I suspect that things like alloca is put in
> some standard somewhere.)
Or
3) Change the code not to use alloca. :)
For example (which is about the same):
foo = 100;
{
char bar[foo];
...
}
Now that I'm, thinking about it. I get no errors (or warnings, IIRC)
while compiling nor do I see problems runtime. How can this slip
through or is there no problem at all?
--
Marco
Re: PowerPC port of PUPA, Yoshinori K. Okuji, 2004/01/24