Hi Matrix team;
As my arduino runs out of program space i thought that a possible solution would be to only compile C code that is used.
Please correct me if i'm wrong
I noticed that component parts that i was not using were still compiled to C code. Maybe a check box system or auto detection could be included in the component macro that would ignor unused parts of the code.
For example if i don't use "LCD clear" then why do i need to include the LCD clear routine?
Andy
Program size
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Program size
Hi Andy,
The LCD clear is called as part of the initialise routine. The compiler should strip out any C functions you do not actually use in your program.
The LCD clear is called as part of the initialise routine. The compiler should strip out any C functions you do not actually use in your program.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel