[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lwc-list] alloca?
From: |
Brian Olsen |
Subject: |
[Lwc-list] alloca? |
Date: |
Tue, 05 Aug 2003 15:57:24 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
Hello -
I've been trying to port lwc over to work with tcc and basically i'm
getting killed by tcc's lack of alloca.
Since I'm lazy I'll take the first option out and basically copy this
from the man page
ALLOCA(3)
.
.
.
BUGS
The alloca function is machine and compiler dependent. Its
use is discouraged.
On many systems alloca cannot be used inside the list of
arguments of a function call, because the stack space
reserved by alloca would appear on the stack in the middle
of the space for the function arguments.
.
.
.
Would it hurt anyone to just pretty much axe alloca calls? The 'c'
mentality has always been to pair up your mallocs and frees and perhaps
the alloca calls are just away to be lazy.
Any suggestions?
- [Lwc-list] alloca?,
Brian Olsen <=