Propeller IDE 1.2 objects & CASE limitation
Giemme
Posts: 85
Hi All
I found following not documented limitation in the Propeller IDE 1.2
- you cannot have more that 256 PUB/PRI objecs in one .spin file
- you cannot have more that 64 CASE in one PUB/PRI objects
Regards
Gianni
·
I found following not documented limitation in the Propeller IDE 1.2
- you cannot have more that 256 PUB/PRI objecs in one .spin file
- you cannot have more that 64 CASE in one PUB/PRI objects
Regards
Gianni
·
Comments
8 Nested blocks (IF/Repeat/Case)
32 Objects
16 ELSEIF
I've only hit them when really pushing things past practical limits [noparse]:)[/noparse] (ie not actually in real use but code to stretch the limits of the compiler)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
The others seem to be restrictions imposed by the PropTool; fixed size arrays for holding the nesting information ? It would be nice if nesting could go deeper as I've run into that problem a few times, particularly with large Case statements. For a 256 Case variant, the solution is to nest Case statements ...
This is smaller for each individual IF (on average) and does not require special cases.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Regards
Gianni
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!