This is the mail archive of the gcc-help@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: Forcing inline assembly code to be produced


On Mon, 2007-04-23 at 19:36 +0100, Andrew Haley wrote:
>  > I'm using gcc 3.3.5 and as 2.15.
> 
>  > Is there a way to force such assembly code to be produced even though it
>  > may be unreachable ? If not should there be a way ?
> 
> If code is unreachable, there's no way to jump to it.  It's not legal
> in gcc to jump into or out of an inline asm.

It seems that I was looking for the 4.1.x optimization flag
-freorder-blocks-and-partition that places the body of uncommon branches
in a separate section and the macro __builtin_expect() that provides
branch prediction hints.



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