Applies To: |
|
Summary: |
Compiler error reads "Total code size too large; refactor code". |
Solution: |
The statements that control decisions and
loops in your functions are called conditional executors. Cicode
uses four conditional executors: IF, FOR, WHILE, and SELECT CASE.
This compiler error indicates that a conditional executor is followed by too many executable statements. For example:
The context of the compiler error points to the end of the problematic conditional executor. The executable statements will normally be found immediately before this line. The Cicode needs to be reorganized to reduce the number executable statements within the conditional branch. One approach is to move the statements that follow the conditional executor into a separate function. For example, rather than:
you might instead add a new function:
that is called as follows:
|
Keywords: |
Cicode, Compiler error, |
Related Links
Attachments