[LLVMdev] size of generated machine code ?

Chris Lattner sabre at nondot.org
Tue Jun 20 20:38:24 PDT 2006


On Tue, 20 Jun 2006, Chris Lattner wrote:
> On Wed, 21 Jun 2006, Simon Burton wrote:
>> This from the output:
>> 
>>   24620 x86-emitter           - Number of machine instructions emitted
>> 
>> (i had to write a dummy main function to get this to work)
>> 
>> Is this really the number of bytes of machine code ?
> Yes.

To be specific, this is the number of bytes of machine code JIT'd.  Thus, 
this only includes the stuff reachable from main, for example.  To see 
specifically what functions it is compiling and how big they are, use:

lli -debug-only=jit foo.bc <args>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list