|
Integrated into RIDE
The RC-ST6 'C' Compiler is fully integrated into the RIDE environment.
A super-set of ANSI-C
RC-ST6 implements the ANSI standards for the 'C' language but has
been extended with keywords that are specific to the ST6:
|
asm
|
at
|
code
|
data
|
|
generic
|
interrupt
|
intrinsic
|
sfr
|
|
Memory models
The memory model specifies the default location for variable
declarations and the default type for generic pointers. Two memory
models are available. SMALL matches devices with 4K Bytes while
LARGE is for the other devices that require a bank-switching mechanism.
|
|
Base Types
Integer Types:
- 8 bits : "signed char" and "unsigned char",
- 16 bits : "signed int" and "unsigned int",
Pointer Types
Two types of pointers are always available, generic pointers and
space qualified pointers.
Code Optimizations
RC-ST6 optimizes the code to be both compact and fast. It ensures
that your 'C' program runs as quickly and efficiently as possible.
Nevertheless, RC-ST6 has been designed to put the emphasis on the
size of code rather than the speed of execution.
|
Libraries
RC-ST6 is supplied with ANSI 'C' standard libraries as described
in: stdio.h, string.h, ctype.h, and stdlib.h standard header files.
Specific ST6 libraries are provided to allow a fast configuration
of the internal peripherals present in the ST6 derivatives.
Implementation
RC-ST6 Compiler and the libraries are fully autonomous and do not
require the use of any other coding tool. A 'C' function can be
called from an assembly program, and can call routines written in
other languages.
|