SW006010 Microchip Technology, SW006010 Datasheet - Page 56

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
apRNOVM^-page 50
C17 C Compiler User’s Guide
2. In
3. Compile the source file, assemble
5.4.2
When declaring initialized data (such as:
memory but the value is stored in program memory. Before the data is usable in any
program, the values must be copied from program memory into the variable in data
memory.
The size of the MPLAB C17 initialization code is approximately 50 words. Therefore,
to only initialize a few variables, do not use that feature and initialize the variables
manually in the code. If initializing many variables (10 or more integers or 20 or more
characters) as they are declared, then the initialization code is the better option in
terms of code size.
To use initialized data with
1. Uncomment the following line in
2. Assemble
3. Assemble
4. Link the above files with the C object code.
To use initialized data with
1. Assemble
2. Assemble
3. Link the above files with the C object code.
5.4.3
The stack initialization simply points the compiler stack pointer to the right location in
data memory.
5.4.4
After the startup code optionally calls
sets up the stack, it calls the
arguments passed to
MPLAB C17 transfers control to
goto main
Note: Since _ _STARTUP() is executed before the stack is initialized,
Note:
#DEFINE USE_STARTUP
#DEFINE USE_INITDATA
c0l17.asm
Initialized Data Support
Stack Initialization
Branching to main()
variables may not be used.
c0s17.asm
c0l17.asm
c0s17.asm
idata17.asm
c0s17.asm
idata17.asm
or
c0s17.asm
main()
is assembled with USE_INITDATA undefined by default.
is assembled with USE_INITDATA defined by default.
to produce
to produce
c0s17.asm
c0l17.asm
to produce
to produce
main()
.
, uncomment the line:
main()
c0s17.asm
function of the C program. There are no
_ _STARTUP()
c0s17.o
c0s17.o
in a MPLAB C17 program:
in a MPLAB C17 program:
c0l17.asm
idata17.o
idata17.o
via a
int x = 5;
goto
.
, or use
:
or
, i.e.;
, or use
, or use
and/or copies initialized data, and
), the variable is allocated in data
c0s17.asm
c0s17.o
 2002 Microchip Technology Inc.
idata17.o
idata17.o
directly.
and link.
directly.
directly.
auto

Related parts for SW006010