[prev in list] [next in list] [prev in thread] [next in thread]
List: openldap-devel
Subject: Re: use of alloca()
From: Hallvard B Furuseth <h.b.furuseth () usit ! uio ! no>
Date: 2010-11-05 12:29:49
Message-ID: hbf.20101105mrto () bombur ! uio ! no
[Download RAW message or body]
man alloca on my Linux system says:
NOTES ON THE GNU VERSION
(...) there is no NULL error return.
BUGS
The alloca() function is machine and compiler dependent. On many
systems its implementation is buggy. 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.
OTOH, programs like gcc and emacs have been using alloca() a lot,
though I think at least gcc has mostly gotten rid of it.
--
Hallvard
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic