[LLVMdev] Machine Code for different architectures

Bruce Hoult bruce at hoult.org
Mon Sep 8 23:21:01 PDT 2014


http://llvm.org/docs/WritingAnLLVMBackend.html


On Tue, Sep 9, 2014 at 6:09 PM, Prakash Premkumar <prakash.prax at gmail.com>
wrote:

> How does LLVM generate machine code for different architectures?
> For example, the machine code for x86 and amd will vary.
>
> How does LLVM convert its IR to machine code for different
> architectures.Can you please explain the approach? Is it just write two
> different programs for two different architectures and pass a flag to the
> compiler based on which machine code you want to generate?
>
> Thanks a lot for your explanations.
>
> Thanks
> Prakash
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140909/0be95eaa/attachment.html>


More information about the llvm-dev mailing list