Codesize compared to V3
Posted: Tue Apr 17, 2018 7:35 am
Hello,
I am new on programming Flowcode (wonderful tool), we are using Flowcode V3 and Flowcode V5.
At the moment I try to program a PIC12F615 (small memory) it works fine by using V3 but when
I use the more comfortable V5 the code will always be too big. For example I have writ a very small program (see attached pictures) just read out two ADC (as byte) and subtract the both values.
By using V3 the codesize is 9 bytes (14.1%), under V5 the codesize is 48 bytes (75%).
I use the boostc V6.7 compiler in V3 and the boostc V7.04 vompiler in V5.
In the C-files you can see that V5 include many unused function, I think that’s the reason for the big size.
Now my questions, is it recommended to use a other compiler which is able to remove unused functions?
Is there’re any other possibility to reduce the codesize?
Or is it recommended to use V3 for controllers with a small memory?
I am new on programming Flowcode (wonderful tool), we are using Flowcode V3 and Flowcode V5.
At the moment I try to program a PIC12F615 (small memory) it works fine by using V3 but when
I use the more comfortable V5 the code will always be too big. For example I have writ a very small program (see attached pictures) just read out two ADC (as byte) and subtract the both values.
By using V3 the codesize is 9 bytes (14.1%), under V5 the codesize is 48 bytes (75%).
I use the boostc V6.7 compiler in V3 and the boostc V7.04 vompiler in V5.
In the C-files you can see that V5 include many unused function, I think that’s the reason for the big size.
Now my questions, is it recommended to use a other compiler which is able to remove unused functions?
Is there’re any other possibility to reduce the codesize?
Or is it recommended to use V3 for controllers with a small memory?