[LLVMdev] size of generated machine code ?

Simon Burton simon at arrowtheory.com
Tue Jun 20 20:31:42 PDT 2006


On Wed, 31 May 2006 13:19:21 -0500 (CDT)
Chris Lattner <sabre at nondot.org> wrote:

> On Wed, 31 May 2006, Simon Burton wrote:
> > Is there a way to find out how much memory
> > some JIT'ed machine code uses ?
> 
> lli -stats x.bc <args>
> 
> the -stats output will indicate the # bytes of machine code.
> 

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 ?

thanks,

Simon.


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 



More information about the llvm-dev mailing list