First page Back Continue Last page Overview Graphics

Program Sections


The above code defines a section called data1. All of the code defined in this section can be loaded into a set place in memory during the link process.

The sections .text, .data, .bsct and .bss are used by most C compilers including the Cosmic compiler and are predefined. A syntax error is generated if an attempt is made to define any of these sections.

If variables are placed in the .bsct section they will be addressed using direct addressing. The length of this segment cannot be greater than 255 bytes.