11 Linker Examples

The 32-bit compiler and assembler each provide a syntax that can be used to designate certain elements of an application for special handling. In C, a rich set of attributes are available to modify variable and function definitions (see the C compiler user's guide relevant for your target device. In assembly language, variables and functions are abstracted into memory sections, which become inputs to the linker. The assembler provides another set of attributes that are available to modify section definitions (see 5.5 Directives that Modify Section Alignment).

This chapter includes a number of 32-bit specific linker examples and shows the equivalent syntax in C and assembly language.