llvm.org GIT mirror llvm / c56e582
* Reworded a bit about JITs (I don't like acronyms followed by 's) * Added JIT capability to the LLI description section * LLC is quasi-x86-capable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7098 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 16 years ago
1 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
104104 on other platforms, so it should be possible to generate and produce LLVM
105105 bytecode on unsupported platforms (although bytecode generated on one
106106 platform may not work on another platform). However, the code generators
107 and Just In Time Compilers (JIT's) only generate SparcV9 or x86 machine
108 code.
107 and Just-In-Time (JIT) compilers only generate SparcV9 or x86 machine code.
109108
110109
111110

Software

718717 can directly execute LLVM bytecode (although very slowly...). In addition
719718 to a simple interpreter, lli is also has debugger and tracing
720719 modes (entered by specifying -debug or -trace on the
721 command line, respectively).

720 command line, respectively). Finally, for architectures that support it
721 (currently only x86 and Sparc), by default, lli will function as
722 a Just-In-Time compiler (if the functionality was compiled in), and will
723 execute the code much faster than the interpreter.

722724
723725
llc
llc is the LLVM backend compiler,
724 which translates LLVM bytecode to a SPARC assembly file.

726 which translates LLVM bytecode to a SPARC or x86 assembly file.

725727
726728
llvmgcc
llvmgcc is a GCC based C frontend
727729 that has been retargeted to emit LLVM code as the machine code output. It
805807 % dis < hello.bc | less

806808
807809
  • Compile the program to native Sparc assembly using the code
  • 808 generator:

    810 generator (assuming you are currently on a Sparc system):

    809811
    810812 % llc hello.bc -o hello.s

    811813