[dtrace-discuss] nop instruction generated by sun cc

Sean McGrath - Sun Microsystems Ireland sean.mcgrath at sun.com
Tue Sep 11 08:41:52 PDT 2007


???? TaoJie stated:
<    Dear all:
<     
<    there's no sun studio mailling list in opensolaris.org, i raise my problem
<    here :)

 Theres the tools-discuss mailing list for this.

<     
<    a simple piece of code, 2 nested while loops, and some if statements
<    inside each while loop.
<     
<    i compiled this program in Solaris with sun cc (sun studio 12)  and gcc.
<    and i compiled it in Debian with gcc as well.
<     
<    Then I dumped (disassembled) these 3 programs.
<    I found that there were alway serveral nop instructions followed with the
<    jmp instruction in the program generated by suncc.
<    and this problem didn't exist in the other 2 program generated by gcc.
<     
<    err... Why does sun cc generate code using this pattern (a jmp followed by
<    serveral nops)? For what?

  Ask on the tools-discuss and maybe attach the (small?) c-source too.

Regards,
<     
<    TIA
<     
<     
<    Regards,
<    TJ

< _______________________________________________
< dtrace-discuss mailing list
< dtrace-discuss at opensolaris.org


-- 
Sean.
.


More information about the dtrace-discuss mailing list