Forum Discussion
Which folder contains the source code for Nios II built in function
- 3 years ago
Hi Chris,
Sorry about the bad news. Unfortunately after consulting the engineering team, we are unable to provide the definition on how to use the built in function and the source code as it is private and confidential. However, do feel free to use the macros which is the IORD or IOWR that calls the built in function.
I will set your case to close-pending if I do not hear from you the next few days. Thank you.
Regards,
Kelly
The below define IORD as __builtin_ldwio but how do I know what is this function __builtin_ldwio doing? I would like to know the source code for the built in function
#define IORD(BASE, REGNUM) \
__builtin_ldwio (__IO_CALC_ADDRESS_NATIVE ((BASE), (REGNUM)))
The document that you have shared chapter 3.2.X lists out all the built in function available but there is no source code for each function.