Displaying 2 results from an estimated 2 matches for "cuj0209stroustr".
2004 Oct 18
3
[LLVMdev] Fix for non-standard variable length array
In lib/CodeGen/LiveVariables.cpp a variable length array is created.
Since this is not standard C++, it won't compile with Visual Studio (for
interested readers, there is a discussion of why the C99 style variable
length array is a bad idea in C++ here:
http://www.cuj.com/documents/s=8191/cuj0209stroustr/) I have made a
patch that uses 'new' and 'delete' instead - if this is unacceptable for
performance reasons, I suggest just choosing some fixed size for the
arrays (128 for example) and asserting that the actual number of
registers is smaller than this. Patch follows.
On a sid...
2004 Oct 18
0
[LLVMdev] Fix for non-standard variable length array
...eVariables.cpp a variable length array is created.
> Since this is not standard C++, it won't compile with Visual Studio
> (for interested readers, there is a discussion of why the C99 style
> variable length array is a bad idea in C++ here:
> http://www.cuj.com/documents/s=8191/cuj0209stroustr/) I have made a
> patch that uses 'new' and 'delete' instead - if this is unacceptable
> for performance reasons, I suggest just choosing some fixed size for
> the arrays (128 for example) and asserting that the actual number of
> registers is smaller than this. Patc...