LLVM: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content added Content deleted
No edit summary |
|||
Line 3: | Line 3: | ||
== OS Development with LLVM == |
== OS Development with LLVM == |
||
LLVM recently has been used |
LLVM recently has been used in development of BSDs. |
||
One good thing |
One good thing about LLVM is that it is cross-compiler by design. |
||
The following command gives the supported architectures |
The following command gives the supported architectures |
||
Line 11: | Line 11: | ||
<code>llc -version </code> |
<code>llc -version </code> |
||
As it is |
As it is a cross compiler by default, clang can called to compile i686-elf for the simply by |
||
<code>clang -target i686-elf</code> |
<code>clang -target i686-elf</code> |
Revision as of 23:27, 13 September 2017
LLVM is a compiler infrasture for several languages. Its is consist of clang (c compiler), the llvm libary (includes llvm-mc the assembler) and lld the linker. The llvm libbary can be used to create several languages like rust.
OS Development with LLVM
LLVM recently has been used in development of BSDs.
One good thing about LLVM is that it is cross-compiler by design.
The following command gives the supported architectures
llc -version
As it is a cross compiler by default, clang can called to compile i686-elf for the simply by
clang -target i686-elf
Building LLVM
- Main article: LLVM Cross-Compiler