SW006015 Microchip Technology, SW006015 Datasheet - Page 78

C COMPILER MPLAB C32

SW006015

Manufacturer Part Number
SW006015
Description
C COMPILER MPLAB C32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheets

Specifications of SW006015

Supported Families
PIC32MX5, MX6, And MX7
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC32 MCUs
Tool Function
Compiler
Supported Devices
PIC32 MCUs
Tool Type
Compiler
Processor Series
PIC32
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
DS51686A-page 74
®
• Input/Output Section Map
5.8.1
The first several lines of the default linker script define the output format and the entry
point for the application. Copies of the default linker scripts are provided in C:\program
files\...\MPLAB C32\pic32mx\lib\ldscripts.
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(_reset)
The OUTPUT_FORMAT line selects the object file format for the output file. The output
object file format generated by the MPLAB C32 language tools is a traditional,
little-endian, MIPS, ELF32 format.
The OUTPUT_ARCH line selects the specific machine architecture for the output file.
The output files generated by the MPLAB C32 language tools contains information that
identifies the file was generated for the PIC32MX architecture.
The ENTRY line selects the entry point of the application. This is the symbol identifying
the location of the first instruction to execute. The MPLAB C32 language tools begins
execution at the instruction identified by the _reset label.
5.8.2
The next section of the default linker script provides default values for the minimum
stack and heap sizes.
/*
EXTERN (_min_stack_size _min_heap_size)
PROVIDE(_min_stack_size = 0x400) ;
PROVIDE(_min_heap_size = 0) ;
The EXTERN line ensures that the rest of the linker script has access to the default
values of _min_stack_size and _min_heap_size assuming that the user does not
override these values using the linker's --defsym command line option.
The two PROVIDE lines ensure that a default value is provided for both
_min_stack_size and _min_heap_size. The default value for the minimum stack
size is 1024 bytes (0x400). The default value for the minimum heap size is 0 bytes.
* Provide for a minimum stack and heap size
* - _min_stack_size - represents the minimum space that must
*
*
*
* - _min_heap_size
*
*
*
*/
- Inclusion of Processor-Specific Object File(s)
- Base Exception Vector Address and Vector Spacing Symbols
- Memory Address Equates
- Memory Regions
- Configuration Words Input/Output Section Map
Note:
Output Format and Entry Points
Default Values for Minimum Stack and Heap Sizes
All addresses specified in the linker scripts should be specified as virtual not
physical addresses.
- represents the minimum space that must
be made available for the stack.
be overridden from the command line
using the linker's --defsym option.
be made available for the heap.
be overridden from the command line
using the linker's --defsym option.
© 2007 Microchip Technology Inc.
Can
Can

Related parts for SW006015