Is there a list of pragmas supported in Xcode? I only know of #pragma mark
. Where would I look to learn about any others?
views:
293answers:
1
+5
A:
GCC online manual, see here. Depending on your XCode settings, you can use GCC 4.0, 4.2, 4.4 (if present on your system) or even LLVM/GCC 4.2. Please refer to proper compiler version docs for specific information.
ZZambia
2009-10-03 22:05:49
At least in the past, I have heard people for whom it mattered lament that Apple's compiler reported its version as "gcc 2.7.2.2" but was really patched in not-so-subtle ways by Apple (to the point of being observationally different from a real gcc 2.7.2.2). I do not know about the current situation, and do not think this would impact the syntax for pragmas.
Pascal Cuoq
2009-10-03 22:22:43
On latest XCode (3.2 on Snow Leopard) GCC's version is reported the right way. In any case, you could do always type "gcc --version" in your console et voilà.
ZZambia
2009-10-03 22:34:22
Just another bit of info. http://hpc.sourceforge.net/ provides latest **standard** version of GCC (now 4.4.1) for OSX versions. I use it with success for my projects, and it's compatible with XCode too (by defining it as default system compiler)
ZZambia
2009-10-03 22:36:30