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

General discussions about working with the Astrobe IDE and programming ARM Cortex-M0, M3, M4 and M7 microcontrollers.
Post Reply
Helpdesk
Posts: 40
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: 525
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

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.

Post Reply