search for: numinstr

Displaying 2 results from an estimated 2 matches for "numinstr".

Did you mean: numinstrs
2005 Apr 08
0
[LLVMdev] Questions !!
...You have two options 1. Create a native executable, find and extract the code section using objdump or whatever is applicable to your platform, and analyze the basic blocks there by finding all branches. 2. Alternatively, the LLVM way: On a RISC-like machine, instructions are usually 4 bytes, so numInstrs * 4 = numBytes. On an architecture like X86 with variable-sized instructions, you will have to calculate the size on a per-emitted-instruction basis. We currently do this for the nightly tests, but it's outputted on a per-program basis, such as: $ lli -stats eks.bc | grep jit 4182 jit...
2005 Apr 08
2
[LLVMdev] Questions !!
Thanks a lot Chris. Regarding basic block size I wish to calculate both: - The number of bytecode bytes - The number of machine code bytes for some target? TS Chris Lattner <sabre at nondot.org> wrote: On Thu, 7 Apr 2005, Tanu Sharma wrote: > Thanks for the reply, > > Actually I m aiming towards determining two values: > > - number of basic blocks in a program For