SDKZSPF LSI, SDKZSPF Datasheet - Page 70

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
3.3 Run Time Environment
3.4 C Run Time Library Functions
3-16
mov
add
ldd
ldd
a0, a7
a0, 1
r4, a0
r6, a7, 3
word of caller’s outgoing arguments is located at a7+(callee’s stack
space)+1, or a7+(0)+1.
The compiler run time environment is initialized in the startup file crt0.o
on Solaris platforms or crt0.obj on Windows platforms. By default, the
startup file is automatically linked by the compiler. The initialization file
fills the bss section with zeroes.
The run-time memory map contains three main sections: text, data, and
bss, in that order. The heap grows from lower addresses to higher
addresses and starts at location __heap_start, which is placed after the
bss section by default. The heap is not allowed to grow beyond
__heap_limit. By default this symbol is set to the largest allowed address
(0xFFFF for sdcc and zdxcc, and 0xFFFFFF for zdcc), so effectively the
heap is not limited unless the user explicitly sets this symbol to a lower
value. Note that the memory between __heap_start and __heap_limit is
not reserved for the heap, the heap is just guaranteed not to take
memory outside of that region. The stack grows from higher to lower
addresses, and starts at the address specified by the predefined variable
__stack_start
and 0xFFEFFF for zdcc. The symbols controlling the stack and heap can
be modified as shown below.
defsym,__heap_start=0xd001,-defsym,__heap_limit=0xd500
test.c
The libc.a libraries supplied with the C compiler contain the run time
library functions. These functions are equivalent to those found in other
C programming environments, having the same names and parameter
lists. Thus existing programs that use these functions may be recompiled
C Cross Compiler
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
sdcc -Wl,-defsym,__stack_start=0xd000,-
1, which has a default value of 0xF7FF for sdcc/zdxcc