Re:Clang/LLVM using the built in assembler builds all of Fre...
by StavrosK on Saturday October 30, 2010 @10:03AM
(#1850857)
I'm not too familiar with C, but don't compilers have to adhere to the standard? Is the issue developers who depended on GCC-specific behaviour for things the standard doesn't document?
[ Parent
| on HN ]
Re:Clang/LLVM using the built in assembler builds all of Fre...
by sp332 on Saturday October 30, 2010 @11:44AM
(#1851060)
The standard just means that if you write "standard C", the compiler will work as expected (for some reasonable value of expected). But compilers can add extensions, and GCC has a long list of extensions. The Linux kernel uses these GCC-specific features a lot!
Here's a list of extensions, if you're curious... http://linuxdevcenter.com/pub/a/linux/excerpts/9780596009588...
Re:Clang/LLVM using the built in assembler builds all of Fre...
by StavrosK on Saturday October 30, 2010 @02:29PM
(#1851470)
I see, thank you. I wasn't aware that these were compiler-specific extensions.
Re:Clang/LLVM using the built in assembler builds all of Fre...
by riffraff on Saturday October 30, 2010 @11:34AM
(#1851039)
gcc, like other compilers, has it's own documented extensions which are used in many projects (such as the linux kernel, but also many interpreters/vms using direct threading for example).
The clang devs try to support them nonetheless for compatibility, except, for what I understand, a few that are explicitly unsupported by design.
Re:Clang/LLVM using the built in assembler builds all of Fre...
by avar on Saturday October 30, 2010 @11:35AM
(#1851043)
Compilers are free to implement extensions if they want. A lot of programs depend on GCC extensions, so you'd never be able to compile e.g. a modern Linux distro with just an ANSI C compiler.
Re:Clang/LLVM using the built in assembler builds all of Fre...
by obneq on Saturday October 30, 2010 @11:30AM
(#1851028)
some things are left undefined by the standard, here compiler implementors can do what they will. Another thing are GNU specific extensions, not only in GCC, leading to GNUisms in many scripts and sources. LLVM supports many GNU extensions.