May 2015
Intermediate to advanced
296 pages
5h 10m
English
In this recipe, you will learn how to convert the LLVM bitcode file to target specific assembly code.
The LLVM static compiler llc should be in installed from the LLVM toolchain.
Do the following steps:
test.bc, can be used as input to llc here. Using the following command, we can convert LLVM bitcode to assembly code:
$ llc test.bc –o test.s
test.s file, which is the assembly code. To have a look at that, use the following command lines:$ cat test.s .text .file "test.bc" .globl mult .align 16, 0x90 .type mult,@function mult: # @mult .cfi_startproc # BB#0: Pushq %rbp .Ltmp0: .cfi_def_cfa_offset ...
Read now
Unlock full access