Re: Forcing inline assembly code to be produced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux