7 ms·
> It makes me wonder how many people there are like me who would be willing to pay $100/year for a bespoke C compiler that was supported by a single source and
by foobarbazqux 13y ago
> It makes me wonder how many people there are like me who would be willing to pay $100/year for a bespoke C compiler that was supported by a single source and stable.
Did you look at ICC / XLC / MSVC? They typically outperform GCC by about 20%, although I haven't checked in a while.
- apaprocki 13y agoActually, more like The Portland Group: http://www.pgroup.com/ http://www.pgroup.com/
- ChuckMcM 13y agoI have ICC-ARM which has out performed GCC for a while. I still use arm-none-eabi-gcc for things which I expect other people to build.
- neckbeard 13y agoYou should probably check again, but in any case MSVC shouldn't be compared to gcc/icc/clang - it can't even compile code written for a 14 year old language specification (C99), so no sane person should use it for C development these days.
- TwoBit 13y agoFWIW, Microsoft hasn't made an effort to support much of C99 because almost none of their users (Windows and XBox developers) use C. I don't know any Windows or XBox programmers who uses C. Your point is still valid: if you want to compile C99 code, MSVC is not even an option.
- foobarbazqux 13y agoIt depends on the features you use. If all you want is variadic macros, long long, __FUNCTION__, and stdint.h, it has those things. If you don't care about sticking to C, you can usually get what you want with a C++ feature anyway. http://stackoverflow.com/questions/3879636/what-can-be-done-in-c-but-not-c/3880281#3880281 http://stackoverflow.com/questions/3879636/what-can-be-done-...
- shin_lao 13y agoI'm not sure MSVC produces faster code than gcc. Icc does, but MSVC doesn't. Note: our build system uses three compilers.
- TwoBit 13y agoUp to some point in the past, MSVC produced better code than GCC, but most recent benchmarks have them roughly equal. MSVC has actually gotten slower in the last couple iterations, but not by a lot.
- mansr 13y agoIn my experience gcc has fewer bugs than icc or xlc.