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]

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


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