This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i386 and asm jumping
>
> Hi!
>
> I would like to hard optimize a special case in my
> code. And what I would like to do is really just
> the following:
>
> the_label:
> ...
> __asm___ ("jmp %0" :: "?" (&& the_label));
>
> What I wanna know is if this is possible? What
> constrain should I use? `m' doesn't work, neither
> do `p'. Any ideas?
It is not possible. ASM statements may not jump.
You may want to use computed goto GCC extension istead.
Honza
>
> regards
> johan