| Real-Time Workshop Release Notes | ![]() |
New Features
The following new feature is provided in Version 5.1.1 of Real-Time Workshop.
New -dr Command Line Switch in TLC Detects Cyclic Record
Creation
The -dr command line option enables the Target Language Compiler to detect at run time when cyclic records are created and to produce a diagnostic message.
Cyclic records are problematic because they cause memory leaks in TLC. A cyclic record is one which ends up pointing to itself. They only can be constructed manually, as in the following example:
%createrecord x { } %% create an empty record x %createrecord y { } %% create an empty record y %addtorecord x field y %% add a field to x which points to y %addtorecord y field x %% add a field to y which points to x
At this point, a cyclic record exists, i.e. x.field.field == x
As this feature significantly slows Target Language Compiler performance, it is off by default.
| Known Software and Documentation Problems | Major Bug Fixes | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2008 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |