![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_177.png)
34-4
LinkLinker Specification File
Programmer’s Manual
Personal Portable System Manager
Programmer’s Manual
34-1
Chapter 34 Linker Specification File
PPSM makes use of the Linker Specification File (.SPC file) of the SDS
development environment for memory mapping and configuration. This SPC file
defines the locations and contents of memory regions and allow user-defined
symbols. It is written in a C-like language. For full details on linker specification
files, please refer to the SDS User Manual.
PPSM required a few user-defined symbols for it to operate. They are listed in
Table 32-1
System integrators inform PPSM of the physical memory size available in a given
hardware system using this linker specification file.
PPSM maintains a stack and heap for memory usage in the application program.
The system integrator must decide how much memory is to be given for the stack
and heap. In general, the heap memory is used as the dynamic allocatable
memory for application use, and the stack memory is mostly used by the system.
For details on memory mapping, please refer to
.
PPSM also maintains an internal UART receive buffer which is used as temporary
storage for data received from the UART. The system integrator must decide what
is the optimal buffer size for a given hardware system.
34.1
.SPC File for a RAM-only System
Following is an example of a SPC file for a M68328ADS with debug monitor ROM
(for SDS use only) with 2 Mbyte of RAM for system use. This 2 MByte RAM-only
system has the following characteristics:
The RAM system starts at address 0x0
4 KByte of reserved memory starting from address 0x0 for reset
vectors and SDS debug monitor use
As much executable code space as required, round to 4-byte
boundary
As much constant data space as required, round to 4-byte
boundary
Table 32-1 Symbols Definitions for Linker Specification File
Symbol Name
Description
LCDPHYSWIDTH
LCD physical display screen width in pixels
LCDPHYSHEIGHT
LCD physical display screen height in pixels
LCDVIRTWIDTH
LCD virtual screen (Panning Screen) width in pixels
LCDVIRTHEIGHT
LCD virtual screen (Panning Screen) height in pixels
UARTRCVBUF
Internal UART receive buffer size in number of bytes
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.