[LLVMdev] Questions !!
alenhar2 at uiuc.edu
Fri Apr 8 13:37:54 PDT 2005
On Fri, 2005-04-08 at 12:14, Misha Brukman wrote:
> On Fri, Apr 08, 2005 at 08:37:03AM -0700, Tanu Sharma wrote:
> > - The number of machine code bytes for some target?
> 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.
<shameless alpha plug>
If you were compiling on alpha:
objdump -t file |sort |grep -A 1 LBB
then the size of each basic block would be the address of the symbol -
the address of the next symbol (all basic blocks symbols are currently
exported in alpha and start with LBB)
</shameless alpha plug>
More information about the llvm-dev