Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSince a BSP is not used, you have to write the macros for the custom instructions yourself or use the builtins, which should be defined by the cross compiler.
For example:/* Opcode for the byteswap custom instruction provided by Altera.
* This may change if other custom instructions are present. */
# define ALT_CI_BYTESWAP_N 0x00
# define ALT_CI_BYTESWAP(x) __builtin_custom_ini(ALT_CI_BYTESWAP_N, (x))