Page 1 of 1
Can the limit on the number of record extension levels be increased?
Posted: Fri Sep 04, 2020 6:12 am
by Helpdesk
We are using the "Record- Inheritance" quite intensively. Unfortunately, this is now limited to a depth of 4. Would it be a big deal to increase this to something a bit higher like 8 or 16?
Re: Can the limit on the number of record extension levels be increased?
Posted: Fri Sep 04, 2020 6:15 am
by cfbsoftware
There is now a compiler option 'Extension levels' on the Tools > Preference > Compiler tab page. This allows you to change the limit of the number of record extension levels from as little as zero to as many as 8.
Be aware that it is a system-wide option. Each additional level incurs an overhead of four bytes for every record variable in all of your Astrobe for Cortex-M applications built on that development PC. If the value of the option is changed at any time, any module which contains a record variable will be automatically recompiled when an application which imports it is next built.