[llvm-dev] difference between llvm-gcc and clang

Tim Northover via llvm-dev
Sat, 23 Jul 2016 01:02:10 -0000

On 22 July 2016 at 17:20, Yuxi Chen <chenyuxi at uchicago.edu>
wrote:
> I am wondering the bitcodes generated by llvm-gcc and clang  are same, or
almost same, I mean they are almost same, but maybe some newly-created
optimization would exert impact.

If you can find an old version of llvm-gcc it will produce radically
different bitcode from Clang. So different that a modern LLVM wouldn't
even understand it.

But if you just run the pretend llvm-gcc that's on modern macOS
machines, it will produce code identical to Clang because it's
basically just a symlink *to* Clang.

Cheers.

Tim.