I want to get the label's address of C language in armcc[rvct 3.1] build enviroment.
such as:
void func()
{
int * aptr;
LABEL:
....
goto LABEL;
}
if in VC env,get it like this(use assembly ins :offset):
void func()
{
void * aptr;
__asm{ mov [aptr],offset LABEL };
LABEL:
....
__asm{ jmp aptr};
}
and if in GCC env,get it like this(use &&):
void func()
{
void * ptr = &&LABEL;
LABEL:
....
goto *aptr;
}
but in armcc env,who can tell me how to get? I am not familiar with ARMCC assembly.thks