LLVM: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Created page with "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 libbar..."
 
mNo edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1:
LLVM is a compiler infrastureinfrastructure for several languages. ItsIt is consistconsists of clang (cas the C compiler), the llvmLLVM libarylibrary (includes [http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html llvm-mc] as the assembler) and lld as the linker. The llvmLLVM libbarylibrary can be used to create several languages like rustRust.
 
== OS Development with LLVM ==
 
LLVM recently has been used in development of BSDs.
One good thing of LLVM, it is cross-compiler by design.
 
One good thing ofabout LLVM, is that it is cross-compiler by design.
 
The following command gives the supported architectures
 
<code> llc -version </code>
 
As it is asa cross compiler by default, clang can called to compile i686-elf for the simply by
 
<code> clang -target i686-elf</code>
 
To link the object files, simply use <code>ld.lld</code>, as for LLD, architectures doesn't matter.
 
=== Building LLVM ===
{{Main|LLVM Cross-Compiler}}
 
[[Category:Tools]]
[[Category:Compilers]]
[[Category:Linkers]]
[[Category:Assemblers]]