[Cython] C -- Variable-sized array on stack?
Jason Evans
jasone at canonware.com
Thu Apr 30 21:36:14 CEST 2009
Dag Sverre Seljebotn wrote:
> Will I get away with code like this in Cython?
>
> void foo(int n) {
> int stack[n];
> ...
> }
>
> I.e. what C language level are we targeting exactly? Also, does the
> above cause a proper stack allocation?
I think this is a C99 feature that happens to be part of gnu89 as well.
I seem to recall that MSVC++ does not support the feature, which is an
important consideration here.
Jason
More information about the Cython-dev
mailing list