Hi, I'm currently working on improving the allocation of temporary data to allow allocation directly on the (real) stack instead of my pseudo-stack. I'll probably leave the old allocator available as an option for compilers that don't understand variable-size arrays, but I'd like to have an idea of how many people it affects. Are there many people who cannot compile the following (valid C99) program? int main() { int i=1; float f[i]; } Jean-Marc -- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universite de Sherbrooke
Hi Jean Marc, re: At 11:06 AM 3/3/2005, Jean-Marc Valin wrote:>Are there many people who cannot compile the following (valid C99) >program?I don't think visual c++ 6.0, .Net or any other msft compiler in existence will handle this properly. Msft has pushed off C99 support indefinitely, from what I understand. Also didn't work on the intel compiler last time I checked (v. 8.1). The way this has been dealt with on another C99 compliant project I fiddle with regularly is that you have to build on windows using mingw, which inevitably will lead to lots of annoying questions about how to compile on windoze... In order to make things work with vc++ many ifdefs may be required.... Hope that helps? Tom
> I don't think visual c++ 6.0, .Net or any other msft compiler in existence > will handle this properly. Msft has pushed off C99 support indefinitely, > from what I understand. Also didn't work on the intel compiler last > time I checked (v. 8.1).Can you check in case there's at least a compiler switch to allow it on those compilers?> In order to make things work with vc++ many ifdefs may be required.... > Hope that helps?I'm keeping the previous allocator, so don't worry. Jean-Marc -- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universite de Sherbrooke