Disclaimer, I not do anything in particular with regards this question, just curious.
Is it possible to take address of instruction or block in C? in essence, is there jump equivalent in C?
for example:
void function() {
int k;
{ // is a possible to go to this address from arbitrary point in code?
int i, j;
k += j+i;
}
}
thank you
I think the closest you can come using standard techniques is setjmp and longjump. They won’t get you access to the actual address though, because the
jmp_bufobject is opaque.