2.1.1. Integer types and state variables

The LISA+ language uses C/C++ code to describe the behavior and the state variables of a component.

Although native C integer types like int and char can be used in the description, it is often desirable to use integer types that have a defined bitwidth that is independent of the host architecture.

In LISA, the following integer types are always defined:

uint8_t

8 bit unsigned integer value

int8_t

8 bit signed integer value

uint16_t

16 bit unsigned integer value

int16_t

16 bit signed integer value

uint32_t

32 bit unsigned integer value

int32_t

32 bit signed integer value

uint64_t

64 bit unsigned integer value

int64_t

64 bit signed integer value.

Using these types is efficient because they do not impose any overhead over native C data types.

Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0372I
Non-Confidential