SW500007 Microchip Technology, SW500007 Datasheet - Page 38

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
PICC18 Compiler Options
2.4.45 --RAM=lo-hi,<lo-hi,...>: Specify Additional RAM Ranges
This option is used to specify memory, in addition to any RAM specified in the chipinfo file, which
should be treated as available RAM space. Strictly speaking, this option specifies the areas of mem-
ory that may be used by writable (RAM-based) objects, and not necessarily those areas of memory
which contain physical RAM. The output that will be placed in the ranges specified by this option
are typically variables that a program defines.
space. This, along with any fixed RAM memory defined in the chipinfo file, are grouped an made
available for RAM-based objects.
for example. To only use an external range and ignore any on-chip memory, use:
This option may also be used to reserve memory ranges already defined as on-chip memory in the
chipinfo file. To do this supply a range prefixed with a minus character, -, for example:
will use all the defined on-chip memory, but not use the addresses in the range from 100h to 103h
for allocation of RAM objects.
Sections of peripheral memory can sometimes be referred to with a tag, for example --RAM=default,+USBRAM.
For more information see Section 3.2.5.
24
Some chips have an area of RAM that can be remapped in terms of its location in the memory
For example, to specify an additional range of memory to that present on-chip, use:
/* Prototypes from test.c */
/* extern functions - include these in a header file */
#if
extern int add(int *, int *);
extern void printlist(int *, int);
#else
extern int add();
extern void printlist();
#endif
--RAM=default,+100-1ff
--RAM=0-ff
--RAM=default,-100-103
PROTOTYPES
/* PROTOTYPES */
/* PROTOTYPES */
PICC-18 Command-line Driver

Related parts for SW500007