This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

The size of the final .out file is too big

Other Parts Discussed in Thread: TEST2

I am trying to port some part of the OpenCV 2.4.2 to the C64+ DSP with CCS 5.2. When I test some of the OpenCV functions in the main function, I find that the size of the final executable file .out produced by the compiler is almost 20MB. It is too big. It seems that all the functions of OpenCV have been linked into the .out file other than only the functions called by the main function. My question is how to reduce the size of .out file. My test method is as below.

1.  test.cpp

void test1()

{}

void test2()

{}

2. main.cpp

int main()

{

   test1();

   return 0;

}