15.3 Allocation of Function Code

Code associated with functions is always placed in the program memory of the target device. The compiler arranges for code to be placed in the .text section (as described in Address Spaces), depending on the memory model used and whether or not the data is initialized. When modules are combined at link time, the linker determines the starting addresses of the various sections based on their attributes.