User manual

200
mikoPascal PRO for PIC32
MikroElektronika
function First(a, b : word) : word;
begin
result := a * b;
end;
begin
Volume := Second(4);
end.
Functions reentrancy
Functions reentrancy is allowed. Remember that the PIC32 have memory limitations that can vary between MCUs.
Types
Pascal is strictly typed language, which means that every variable and constant need to have a strictly dened type,
known at the time of compilation.
The type serves:
- to determine the correct memory allocation required,
- to interpret the bit patterns found in the object during subsequent accesses,
- in many type-checking situations, to ensure that illegal assignments are trapped.
mikroPascal PRO for PIC32 supports many standard (predened) and user-dened data types, including signed and
unsigned integers of various sizes, arrays, strings, pointers and records.
Type Categories
Types can be divided into:
- simple types
- arrays
- strings
- pointers
- records