[llvm-dev] difference between llvm-gcc and clang
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Fri Jul 22 18:02:10 PDT 2016
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.
More information about the llvm-dev