Hello,
I have quite the same question as in thread size of out-file strip6x and relocation template-symbols , except that I found what seems to trig the issue.
The issue: in the out file, created from a project without any debug information, even after a call to "strip6x -p", are embedded some templates names in clear ascii, as well as build options.
For instance, if I just add the following include -not even using a method from it- in a cpp file : #include <streambuf> , here is the extra text added at the end of the out file (I only added line return for display purpose)
MyFile.cpp
-pdsw225
-o3
-frD:/WS/MyWorkarea/software/applications/Appli/CCS/Release/app_ReleaseStApp
-iD:/WS/MyWorkarea/software/libraries/framework/types/includes
-uUSE_SDR
-mf5
-mv6400+
-iC:/Win16App/CCStudio_v3.3/C6000/csl/include
-iC:/Win16App/CCStudio_v3.3/C6000/xdais/include
-iC:/Win16App/CCStudio_v3.3/bios_5_33_06/packages/ti/bios/include
-iC:/Win16App/CCStudio_v3.3/bios_5_33_06/packages/ti/rtdx/include/c6000
-iC:/Win16App/Texas_Instruments/C6000_Code_Generation_Tools_6.1.11/include
0D:\WS\MyWorkarea\software\applications\Appli
Bnpos__Q2_3std78basic_string__tm__58_cQ2_3std20char_traits__tm__2_cQ2_3std18allocator__tm__2_c
Bcollate__Q2_3std17_Locbase__tm__2_i
Bctype__Q2_3std17_Locbase__tm__2_i
Bmonetary__Q2_3std17_Locbase__tm__2_i
Bnumeric__Q2_3std17_Locbase__tm__2_i
Btime__Q2_3std17_Locbase__tm__2_i
Bmessages__Q2_3std17_Locbase__tm__2_i
Ball__Q2_3std17_Locbase__tm__2_i
Bnone__Q2_3std17_Locbase__tm__2_i
B_Psave__Q2_3std41_Facetptr__tm__24_Q2_3std14ctype__tm__2_c
Bskipws__Q2_3std14_Iosb__tm__2_i
Bunitbuf__Q2_3std14_Iosb__tm__2_i
Buppercase__Q2_3std14_Iosb__tm__2_i
Bshowbase__Q2_3std14_Iosb__tm__2_i
Bshowpoint__Q2_3std14_Iosb__tm__2_i
Bshowpos__Q2_3std14_Iosb__tm__2_i
Bleft__Q2_3std14_Iosb__tm__2_i
Bright__Q2_3std14_Iosb__tm__2_i
Binternal__Q2_3std14_Iosb__tm__2_i
Bdec__Q2_3std14_Iosb__tm__2_i
Boct__Q2_3std14_Iosb__tm__2_i
Bhex__Q2_3std14_Iosb__tm__2_i
Bscientific__Q2_3std14_Iosb__tm__2_i
Bfixed__Q2_3std14_Iosb__tm__2_i
Bboolalpha__Q2_3std14_Iosb__tm__2_i
B_Stdio__Q2_3std14_Iosb__tm__2_i
Badjustfield__Q2_3std14_Iosb__tm__2_i
Bbasefield__Q2_3std14_Iosb__tm__2_i
Bfloatfield__Q2_3std14_Iosb__tm__2_i
Bgoodbit__Q2_3std14_Iosb__tm__2_i
Beofbit__Q2_3std14_Iosb__tm__2_i
Bfailbit__Q2_3std14_Iosb__tm__2_i
Bbadbit__Q2_3std14_Iosb__tm__2_i
B_Hardfail__Q2_3std14_Iosb__tm__2_i
Bin__Q2_3std14_Iosb__tm__2_i
Bout__Q2_3std14_Iosb__tm__2_i
Bate__Q2_3std14_Iosb__tm__2_i
Bapp__Q2_3std14_Iosb__tm__2_i
Btrunc__Q2_3std14_Iosb__tm__2_i
B_Nocreate__Q2_3std14_Iosb__tm__2_i
B_Noreplace__Q2_3std14_Iosb__tm__2_i
Bbinary__Q2_3std14_Iosb__tm__2_i
Bbeg__Q2_3std14_Iosb__tm__2_i
Bcur__Q2_3std14_Iosb__tm__2_i
Bend__Q2_3std14_Iosb__tm__2_i
B_Stz__Q2_3std13fpos__tm__2_i
From -pdsw225 to -mv6400+ are the build options of the project compiling MyFile.cpp
If I remove the include, it still compiles as I'm not using any method out of it, but all the symbols listed above are not embedded in the out file, and thus the binary is lighter.
Our project has many CPP files, which are using -and thus including- STL headers. At the end, it represents about 2MB of plain ASCII character out of 4MB !!!
Tools version:
- CCS 3.3.82.13
- strip6x : 6.1.11
Any idea how to remove those strings out of the out file ?
Regards,
Aymeric