Re: does GCC support __assume, __noop and _ReturnAddress?

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

 



On Mon, 2005-08-29 at 23:26 +0800, Jonathan Wilson wrote:
> I know that these are microsoft inventions but does GCC support anything 
> similar?
> 
> Is there any reason why you couldnt add support for these keywords (or 
> something similar to them) in GCC?

We have

builtin_expect(x,y) -> tell the compiler that the value of x is most
likely y, and optimize for that.

builtin_return_address 

and

i'm not sure what nop does
Does it really output a nop to the instruction stream?

Or is it just an empty statement in the IL.

If just an empty statement in the IL, you can use

(void)0;

> 
> 


[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