Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

questions about builtin Functions

hi.i need some information about builtin Functions,is there any online resources available? And where to find?thank you so much to provide me with a web page link:)

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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).