J
jacob navia
Some people here have started saying that "alloca"
is off topic, and they used the argument that the gcc
compiler doesn't recognize it.
They compile their code using the -ansi option, and
(off course) the aptly named "pedantic" option.
I am not related in anyway to the developers of the gcc
compiler but seeing the facts of their implementation
I can't imagine that they would take the effort of making
a BUILT-IN (__builtin) function if they did not want
people to use it.
The gcc compiler in its *default* setting supports alloca
even better than lcc-win32 since they made it a builtin.
And this since ages!
P.S.
Under windows, you have to make a small assembler loop
to touch the allocated pages as you walk down the stack.
This would lead to a slight code bloat and I prefered
the function call method.
is off topic, and they used the argument that the gcc
compiler doesn't recognize it.
They compile their code using the -ansi option, and
(off course) the aptly named "pedantic" option.
I am not related in anyway to the developers of the gcc
compiler but seeing the facts of their implementation
I can't imagine that they would take the effort of making
a BUILT-IN (__builtin) function if they did not want
people to use it.
The gcc compiler in its *default* setting supports alloca
even better than lcc-win32 since they made it a builtin.
And this since ages!
P.S.
Under windows, you have to make a small assembler loop
to touch the allocated pages as you walk down the stack.
This would lead to a slight code bloat and I prefered
the function call method.