I am using cmake for cross-compiling to a TI C55x DSP with Windows as the host 
system. The build process is basically working, however the produced binaries 
are significantly larger than what the TI Code Composer Studio 6 (CCS6) would 
produce. The only difference, according to the CCS6 Makefile, is that CMake 
will compile each .c file individually and then link them together. The CCS6 
Makefile will call the compiler once with all sources, i.e.

$ <PATH_TO_COMPILER>/cl55.exe <FLAGS> source1.c source2.c source3.c ... 
--output_file=target.obj

This seems to make a difference because of an optimization flag from the cl55 
compiler "--program_level_compile" which optimizes "stuff" across all input 
source files.

(How) is it possible to achieve that behaviour with CMake aswell, i.e. by 
modifying CMAKE_C_COMPILE_OBJECT? If possible: where can I read up on that?

Thanks in advance,
Uwe


This message has been scanned for malware by Websense. www.websense.com
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to