mikroC
making it simple...
Storage Classes
Associating identifiers with objects requires each identifier to have at least two
attributes: storage class and type (sometimes referred to as data type). The mikroC
compiler deduces these attributes from implicit or explicit declarations in the
source code.
Storage class dictates the location (data segment, register, heap, or stack) of the
object and its duration or lifetime (the entire running time of the program, or dur-
ing execution of some blocks of code). Storage class can be established by the
syntax of the declaration, by its placement in the source code, or by both of these
factors:
storage-class type identifier
The storage class specifiers in mikroC are:
auto
register
static
extern
Auto
Use the
the default for local variables and is rarely used. You cannot use
als. See also Functions.
Register
By default, mikroC stores variables within internal microcontroller memory. Thus,
modifier
ignores requests for register allocation.
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
modifer to define a local variable as having a local duration. This is
auto
technically has no special meaning. mikroC compiler simply
register
with glob-
auto
page
89
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?