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

Yuxi Chen via llvm-dev
Sat, 23 Jul 2016 01:05:40 -0000

Get it.
Really appreciate your help.

Yuxi

> On Jul 22, 2016, at 8:02 PM, Tim Northover <t.p.northover at
gmail.com> wrote:
>
>> 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.