I am writing an algorithm using opencv library on an embedded processor (NIOS 2) , in order to port the library to be compiled on nios :
1 - I removed highgui and all functions that deals with IO operations .
2 - I took the remaining files (which are many) and added them to a new eclipse project along with my main.cpp.
3 - I can compile the code and run it fine but the main problem is that the output file which will be downloaded to the embedded processor (.elf file) is too large ~20 MBs with no optimization and ~6 MBs with optimization level 3.
Are there any tips to compile only the needed files in this large project and skip other files that I don't call in my code ?