[llvm-dev] LLVM JIT Compilation

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 16 12:57:47 PDT 2017


On 16 August 2017 at 12:05, hameeza ahmed via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> ok i have managed to compile using lli (jit) as follows: but i dont get
> assembly file?

lli doesn't produce assembly files, that's llc's job. lli creates an
object file in memory and runs a function from it.

> now how to obtain assembly file generated at run time. and do a detailed
> debugging of this code.

To debug it I'd put a breakpoint where lli.cpp actually starts
executing the code (looks like a call to "runFunctionAsMain") and keep
going from there.

Cheers.

Tim.


More information about the llvm-dev mailing list