Re: Adding new builtin function to gcc

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

 



On 23 May 2016 at 12:37, Ons Boutiti wrote:
> Hi all,
> I have read about gcc builtin functions and its utility, I would ask
> some basic questions: how can I implement a new built-in function into
> gcc?!

It depends what you want the function to do.

> is there a manual or an exemple to follow it because i just
> found definitions.

I added the C++ __is_final builtin with the patch attached to
https://gcc.gnu.org/ml/gcc-patches/2011-12/msg00231.html -- that might
give you some hints about how to extend the compiler to recognise a
new builtin function, but you'll still need to implement its
functionality yourself.



[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