top | item 6101359

(no title)

wladimir | 12 years ago

The major difference with GCC's and other IRs is that LLVM and clang made it easy to use and embed the APIs in other software (due to the license as well as exporting a library). This made it much more convenient to make compilers, as well as code inspection and analysis tools (and even graphics drivers).

Sure, everything was possible before, but much harder for the average programmer interested in this stuff. With just Python and LLVM-python you can do very interesting things, quickly, without delving into GCC sources.

It may be possible that GCC cached up in that aspect, but back in the day I heard from language researchers, the GCC low and high level IR were a hell to introspect and required delving into the GCC source at a deep level.

discuss

order

rcxdude|12 years ago

The difficulty of accessing GCC's IR is partially deliberate - Stallman didn't want any convenient way for non-free software to take advantage of GCCs internals.

emn13|12 years ago

It would seriously surprise me if Stallman had much of anything to do with the current GCC IR, which is from 2003. But maybe I'm mistaken.

Do you have any reference for this intentional obfuscation in any version? It'd be disappointing even if it were the case in earlier versions, but conceivable, I guess...