Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
added:builtin function of nios 2
- Altera_Forum
Honored Contributor
Hope this helps. - Altera_Forum
Honored Contributor
I am also looking information about builtin functions such as __builtin_rdctl, which seems to me like a wrapper function from assembly makro rdctl to C code. Actualy I wonder if they are defined in a file, I couldn't find the definiton or any related document about it.
Also would it be a problem if I redefine it in my projects? - Altera_Forum
Honored Contributor
They are defined in the C sources for gcc, writing asm macros for them is a SMOP (and understanding the gcc asm statement rules).