[cmake-developers] [CMake 0011645]: TI DSP compiler ID determination (w/ patch suggestion)

Mantis Bug Tracker mantis at public.kitware.com
Tue Dec 28 10:56:54 EST 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11645 
====================================================================== 
Reported By:                Wojciech Migda
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11645
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2010-12-28 10:56 EST
Last Modified:              2010-12-28 10:56 EST
====================================================================== 
Summary:                    TI DSP compiler ID determination (w/ patch
suggestion)
Description: 
Currently TI DSP compilers are not handled wrt compiler id detection. This can
be achieved for C/C++ by adding following lines into
Modules/CMakeCCompilerId.c.in and Modules/CMakeCXXCompilerId.cpp.in files:

#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI_DSP"

This will work since __TI_COMPILER_VERSION__ is predefined by TI DSP compilers
(http://focus.ti.com/lit/ug/spru187o/spru187o.pdf)

For assembler language the same executable is used (cl6x), thus
Modules/CMakeDetermineASMCompiler.cmake can be modified by adding lines:

LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TI_DSP )
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TI_DSP "-h")
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_TI_DSP "Texas Instruments")

following "GNU assember" recognition sequence.

Top lines of TI DSP 'cl6x -h' output are:
"""
TMS320C6x C/C++ Compiler                v6.1.11
Tools Copyright (c) 1996-2009 Texas Instruments Incorporated
"""

With best regards,

Wojciech Migda
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-28 10:56 Wojciech Migda New Issue                                    
======================================================================




More information about the cmake-developers mailing list