Double Buffering : Optimizing Double Buffers

Optimizing Double Buffers

After running the Analyzer, complete the following steps to modify the compilation profile:

1.
Select Options > Global Profile Settings in the Code Generator’s main window. The Global Profile Settings window opens.
2.
Click Double-Buffer Optimization. The Double Buffer Optimization window opens.
3.
Select Double Buffer Only Listed Elements. This enables you to choose the elements to double buffer.

The Initialize Double-Buffer List fields become enabled.
4.
Change With All Elements to From Saved List.

An drop-down list displays. You can select any list of elements that you saved including the lists you created with the Analyzer.
5.
6.
Click Initialize List and the element names appear in the Elements to be Double Buffered list.

All assignments in the generated code are done in accordance with the selected list:

All elements in this list are double-buffered.

For example, Rational Statemate assignment to an integer data-item such as X := 5 is translated into the following call:

seti(&X,5);

All elements not in this list use direct assignments in the natural C style; for the above assignment this would be:

X = 5;

7.

Allocate Statically - Generally faster if there is a small number of elements.

Allocate Dynamically - Generally faster if there is a large number of elements. This is the default setting, which you can change in Options > Preferences Management.