| |||
| Home > Formal syntax of the scatter file > Syntax of an execution region description | |||
The syntax of an execution region description, in Backus-Naur Form (BNF), is:
execution_region_description::=exec_region_name(base_address| "+"offset) [attribute_list] [max_size|length] "{"input_section_description* "}"
where:
exec_region_nameNames the execution region.
base_addressSpecifies the address where objects in the region
are to be linked. must
be word-aligned.base_address
Using ALIGN on an execution region causes
both the load address and execution address to be aligned.
+offsetDescribes a base address that is bytes
beyond the end of the preceding execution region. The value of offset must
be zero modulo four.offset
If this is the first execution region in the load region then + means
that the base address begins offset bytes
after the base of the containing load region.offset
If you use +,
then the execution region might inherit certain attributes from the
parent load region, or from a previous execution region within the
same load region.offset
attribute_listThe attributes that specify the properties of the execution region contents.
max_sizeFor an execution region marked EMPTY or FILL the value
is interpreted as the length of the region. Otherwise the max_size value
is interpreted as the maximum size of the execution region.max_size
[-]lengthCan only be used with EMPTY to
represent a stack that grows down in memory. If the length is given
as a negative value, the is
taken to be the end address of the region.base_address
input_section_descriptionSpecifies the content of the input sections.
The Backus-Naur Form (BNF) definitions contain additional line returns and spaces to improve readability. They are not required in the scatter-loading definition and are ignored if present in the file.
Using the Linker:
Using the Linker: