Download Generating Code for Embedded Systems
Transcript
M E M O R Y U S A G E D-2 RAM USAGE The following data must be stored in RAM: • RapidPLUS objects: The status, size, and values of most RapidPLUS objects (see constant objects above) can change dynamically during runtime. Thus, the code generated for all non-constant objects must be stored in RAM. • Modes: Each generated mode requires a small amount of memory to hold information about its state. • User object message structures: All user object message structures are declared in one union and memory is allocated for its largest structure. Only one structure within the union can be active at any one time. In the Object Layout, you choose the memory allocation type for each user object message from the following two options: • • Buffer memory allocation by RapidPLUS: in the generated application, memory is statically allocated in the embedded system to accommodate the union’s largest structure. • Pointer memory allocation by embedded system: the generated application allocates a pointer to the user message object’s union of structures in the embedded system. Memory is then allocated for the union by the embedded system whenever a value is being written to one of its structures. User-generated event queue, logic-generated event queue, condition-only transition/mode activity queue, event-triggered transition queue, and temporary working memory: The sizes of these data structures can be optimized in the Buffers and Queues tab of the Code Generation Preferences dialog box (see p. 10-10).
Related documents
RapidPLUS Basics
ORBi - Université de Liège
10% - CDTF
The inside story on shared libraries and dynamic loading
Generating Documents.book
SGI01 Small Graphics LCD Interface User`s Manual
TAC 200 User`s Manual
A future for usability engineering
Open AT® GTi User Manual
esim User Manual Supplement 7.0
04 ISC 164 Manual de Usuario
04 ISC 211 Manual de Usuario Sistema GIS IMI