Page 1 of 1

Program size

Posted: Thu Mar 19, 2015 6:37 pm
by ajneal4uk
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

Re: Program size

Posted: Mon Mar 23, 2015 11:27 am
by Benj
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.