Can the limit on the number of record extension levels be increased?

General discussions about working with the Astrobe IDE and programming ARM Cortex-M3, M4 and M7 microcontrollers.
Post Reply
Helpdesk
Posts: 24
Joined: Sat Jan 01, 2011 5:43 am
Contact:

Can the limit on the number of record extension levels be increased?

Post by Helpdesk » Fri Sep 04, 2020 6:12 am

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?

cfbsoftware
Site Admin
Posts: 423
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: Can the limit on the number of record extension levels be increased?

Post by cfbsoftware » Fri Sep 04, 2020 6:15 am

We've just released v7.2.0 of Astrobe for Cortex M3. Following your suggestion we have introduced a compiler option 'Extension levels' on a new 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-M3 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.

Post Reply