SDKZSPF LSI, SDKZSPF Datasheet - Page 97

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
5.4 Linker Command File
You can inspect the values of these symbols in the map file.
The value of the symbol __stack_start can be set in a linker script file
or by using the command-line option defsym sym=Value.
A linker command file (also called a linker script file) is a file containing
linker commands that explicitly define symbols and locate sections in
memory. A linker command file can be specified when the linker is
invoked. An example linker command file is shown below.
You need to supply the previous linker command file to the linker through
the ‘-T’ option. Otherwise, it uses the default linker script file.
The previous example declares the output sections .text, .data, and
vectors. Each output section is formed by the corresponding input
sections from all files (as indicated by the ‘*’).
Linker Command File
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
__stack_start: beginning of C stack, default setting is 0xF7FF with
sdld and 0xFF.EFFF with zdld.
__stack_size: user_required. Is an optional symbol that you set,
describing the amount of stack space that is required. If this symbol
is set, it ensures that the required stack space starting from
__stack_start is not allocated to other sections (e.g., data, BSS).
Setting this variable does not prevent the heap from growing into this
area.
__heap_start: starting address of C heap. The default value is the
end of the BSS, ___bss_end.
__heap_limit: limit which heap will not grow beyond. Default setting
is 0xFFFF with sdld and 0XFF.FFFF with zdld. The space between
__heap_start to __heap_limit is not reserved for the heap. The
stack can still grow into this area. These values only guarantee that
the heap does not grow out of this area.
SECTIONS
{
.text 0x2000: {*(.text)}
.data 0x3000: {*(.data)}
vectors 0x0000: {*(vectors)}
}
5-3