Part Number: TMS570LS3137
Other Parts Discussed in Thread: TMS320F28335,
Tool/software: TI C/C++ Compiler
Hello all,
My company is working with a cross platform project on the TMS570LS3137 and TMS320F28335 (obviously there is Some processor specific code, but the bulk of the project is general).
We are using Code Composer Studios v6.1.0.00104 and the ARM compiler v5.2.2
Our project builds and operates just fine. Now for DO178 we need to low-level unit test the functions of said project.
So our unit test framework is setup sorta as follows:
ut_main.c calls ut_app.c, which includes as necessary:
a_code.c/h with ut_a_code.c/h
b_code.c/h with ut_b_code.c/h
c_code.c/h with ut_b_code.c/h
...
z_code.c/h with ut_z_code.c/h
Our unit tests are still under development, but the project code size has ballooned, and become difficult to run on hardware.
Obviously we can just comment out the includes, and exclude the files we don't need to test at the moment.
However, excluding files is a very manual process, and I am trying to find a better programmatic way.
For example, I have attempted to use the Properties > Build > ARM Compiler > Advanced Options > Runtime Model Options > "Place each function in a separate subsection" option.
According to the compiler user guide, this should cause all unlinked function to not be included in the project and final code size should be reduced, assuming most of the functions are unused.
Since my unit test project has all but one code/ut_code file commented out from the ut_app.c, I would expect that my code size should be much reduced with this option.
However, this did NOT occur.
The only thing that has successfully reduced project size is manually excluding unused code/ut_code files from the project.
So, given my unit test setup and my goal of reducing the project to just the currently included code via programmatic build options, does any one have any advice?
Thank you very much,
Neal