This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Call into a function?


Hi,
A code segment from Itanium platform.
Note the instruction at 0x4000000000000722, what does this mean? 
I'vd gdbed the program, r2=0, so 0x4000000000000722 just not executes.
This puzzles me because I am working on analyzing elfs depends on br
Instructions. Can I call into the internal of a function?
Thanks,
Zhenyu

Dump of assembler code for function gmon_initializer:
0x40000000000006f0 <gmon_initializer+0>:        [MMB]       alloc
r34=ar.pfs,3,3,0
0x40000000000006f1 <gmon_initializer+1>:                    addl
r3=64,r1
0x40000000000006f2 <gmon_initializer+2>:                    nop.b 0x0
0x4000000000000700 <gmon_initializer+16>:       [MFI]       mov r32=r1
0x4000000000000701 <gmon_initializer+17>:                   nop.f 0x0
0x4000000000000702 <gmon_initializer+18>:                   mov r33=b0;;
0x4000000000000710 <gmon_initializer+32>:       [MMI]       ld8
r2=[r3];;
0x4000000000000711 <gmon_initializer+33>:                   cmp.eq
p8,p9=0,r2
0x4000000000000712 <gmon_initializer+34>:                   nop.i 0x0
0x4000000000000720 <gmon_initializer+48>:       [BBB]       nop.b 0x0
0x4000000000000721 <gmon_initializer+49>:             (p08)
br.cond.dpnt.few 0x4000000000000740 <gmon_initializer+80>
0x4000000000000722 <gmon_initializer+50>:
br.call.sptk.many b0=0x4000000000000720 <gmon_initializer+48>;;
	
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x4000000000000730 <gmon_initializer+64>:       [MFB]       mov r1=r32
0x4000000000000731 <gmon_initializer+65>:                   nop.f 0x0
0x4000000000000732 <gmon_initializer+66>:                   nop.b 0x0
0x4000000000000740 <gmon_initializer+80>:       [MIB]       nop.m 0x0
0x4000000000000741 <gmon_initializer+81>:                   mov.i
ar.pfs=r34
0x4000000000000742 <gmon_initializer+82>:                   nop.b 0x0
0x4000000000000750 <gmon_initializer+96>:       [MIB]       nop.m 0x0
0x4000000000000751 <gmon_initializer+97>:                   mov b0=r33
0x4000000000000752 <gmon_initializer+98>:
br.ret.sptk.many b0;;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]