开发者

What is the POSIX c99 utility usually implemented as on Linux systems?

开发者 https://www.devze.com 2023-04-09 19:34 出处:网络
I am curious what the POSIX c99 utility is usually implemented as in GNU/Linux distributions. I realize that this is really a question that should be answered by each distribution\'s documentation,

I am curious what the POSIX c99 utility is usually implemented as in GNU/Linux distributions.

I realize that this is really a question that should be answered by each distribution's documentation, but both the manpage on my openSUSE 11.4 install and Ubuntu's manpage basically just list similar information as the POSIX standard, without specifying what the compiler actually is (i.e., is it GCC, Clang or something else).开发者_开发技巧

So does anyone know what the common practice is? My guess would be that it is a wraper for gcc with the -std=c99 option, perhaps with -pedantic added to conform more closely with the C99 standard.


Usually, it's indeed a wrapper for gcc -std=c99, though it might select a compiler based on the environment variable CC. You can check for yourself by doing file /usr/bin/c99 and reading it if it's a shell script, or checking where it points to if it's a symlink.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号