3 ms·
Just asking, does currently available compilers support restrict? (or C99 standards)? I use msvc mostly and gcc sometimes.
by habibur 17y ago
Just asking, does currently available compilers support restrict? (or C99 standards)?
I use msvc mostly and gcc sometimes.
- AlisdairO 17y agogcc certainly does (use -std=c99). If you don't want to use C99, use __restrict__ to use it as a gcc extension. This is C-specific - I don't believe a similar standard has worked its way into C++ yet, although compilers may have extensions that support it. I don't know about msvc, I'm afraid. GCC's C99 implementation is mostly complete - you can find out more here: http://gcc.gnu.org/c99status.html http://gcc.gnu.org/c99status.html