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.

Compiler: How TI compiler differ from gcc arm cross compiler

Other Parts Discussed in Thread: RM46L440

Tool/software: TI C/C++ Compiler

Hello Experts,

How TI compiler is different from the GCC supported cross compiler and what is the merits in using TI based compiler.

Also for C++ which one is better.

  • I presume you compare the TI ARM compiler with all of the GCC ARM compilers as a group, and not some particular GCC ARM compiler.

    The GCC ARM compiler is open source, while the TI ARM compiler is not.  Both compilers have been deployed in the field a long time (20+ years).  Until around 10 years ago, they were separate in every way.  Then, led by ARM Ltd, an ABI (application binary interface) was developed and all ARM compilers adopted it.  This means you can intermix code built with different ARM compilers. 

    There are 3 chief differences among the compilers.

    One ... The command line interface is different.  For instance, the meaning of the -o option is not the same.  Lots of options are unique to each compiler.

    Two ... The TI ARM compiler supports a lot of the language extensions available in the GCC ARM compiler, but not all of them.  The biggest such difference is the built-in function asm, which is used to insert assembly code statements into the assembly language output of the compiler.  The GCC asm statement supports several ways of interacting with the surrounding C or C++ source code.  The TI asm statement does not.

    Three ... The last ARM CPU family supported by the TI ARM compiler is Cortex-A8.  If you are using Cortex-A15 or beyond, it is better to use a GCC ARM compiler.

    Thanks and regards,

    -George

  • Hi George,

    Thanks for the detailed response.

    I would like to run some of the C++ codes into the TI processor RM46L440. And the code I am already able to compile in generic GCC.

    Is it any reference guide on using generic ARM gcc compilers for the RM46L440 platform ?

  • lyf sci said:
    Is it any reference guide on using generic ARM gcc compilers for the RM46L440 platform ?

    I am not aware of a document with precisely that focus.

    I recommend you start with a development kit designed for use with your device.  That kit will require you to install Code Composer Studio (CCS).  Use whatever compiler that development kit is documented to use.  It might be the TI ARM compiler.  Get a few of the examples in the kit working.  Then, if you are not already using a GCC ARM compiler, switch to the GCC ARM compiler that is bundled with CCS.  Get those same examples working with the GCC ARM compiler.

    By that point, you will have a much better understanding of how to use the GCC ARM compiler.  And you are much more likely to be successful in the development of your own code.

    Thanks and regards,

    -George