On Wed, 27 Feb 2008, Rick Hunnicutt wrote:

> Thank you!
>
> objdump allows for nice C/assm source mixing. I've played with these tools 
> and read 
> the man pages but haven't found a way to do that. Do you know if it is 
> possible?

Have you seen er_src of sun studio?

It would also emit the compiler commentaries (which loops are unrolled,
which functionas are inlined, etc) for you.

                 [ 708]      cfb:  pushl   -0x1400(%ebp)
            709.       if (bzerr != BZ_OK) panic ( "test:bzReadGetUnused" );
                 [ 709]      d01:  pushl   -0x1404(%ebp)
                 [ 709]      d07:  leal    -0x13f0(%ebp),%eax
                 [ 709]      d0d:  pushl   %eax
                 [ 709]      d0e:  call    uInt64_from_UInt32s [ 0x748, .-0x5c6 
]
                 [ 709]      d13:  addl    $4,%esp
                 [ 709]      d16:  leal    -0x13f8(%ebp),%eax
            710.
            711.       unusedTmp = (UChar*)unusedTmpV;
                 [ 711]      d1c:  pushl   %eax
                 [ 711]      d1d:  call    uInt64_to_double [ 0x788, .-0x595 ]

          Source loop below has tag L6
          L6 multi-versioned for improved for. Specialized version is L31
            712.       for (i = 0; i < nUnused; i++) unused[i] = unusedTmp[i];
                 [ 712]      d22:  addl    $0x10,%esp
                 [ 712]      d25:  fstpl   -0x1418(%ebp)
                 [ 712]      d2b:  fwait
                 [ 712]      d2c:  subl    $0xc,%esp
                 [ 712]      d2f:  leal    -0x13f0(%ebp),%eax
                 [ 712]      d35:  pushl   %eax
                 [ 712]      d36:  call    uInt64_to_double [ 0x788, .-0x5ae ]


>
> Thanks again!
> Rick
>
>
> ----- Original Message ----
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> To: Rick <[EMAIL PROTECTED]>
> Cc: tools-discuss@opensolaris.org
> Sent: Wednesday, February 27, 2008 1:33:33 PM
> Subject: Re: [tools-discuss] objdump for solaris
>
>
> /usr/ccs/bin/elfdump
>
> /usr/ccs/bin/dis
>
> /opt/SUNWspro/bin/dumpstabs
>
> /opt/SUNWspro/bin/dwarfdump
>
>
> That should cover most of your needs.
>
> Alexander
>
> On Wed, 27 Feb 2008, Rick wrote:
>
>> I have a fresh install of Solaris X86 Developer Edition and don't seem to 
>> have objdump. Do I have to install GCC and binutils for this? I would have 
>> thought that the Sun Studio tools would have something like this... Does it?
>>
>> Thanks,
>> Rick
>>
>>
>> This message posted from opensolaris.org
>> _______________________________________________
>> tools-discuss mailing list
>> tools-discuss@opensolaris.org
>>
>
>
>      
> ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>

_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to