15.4 Changing the Default Function Allocation

The assembly code associated with a C/C++ function can be placed at an absolute address. This can be accomplished by using the address attribute and specifying the virtual address of the function, see Address Function Attribute.

Functions can also be placed at specific positions by placing them in a user-defined section and then linking this section at an appropriate address, see Section Function Attribute.