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.

Ubuntu arm compiler support

HI all,

I found that ubuntu 12.04 or above have support for arm cross compiler . That we can easily install using following commands. That is maintained by linaro.

sudo add-apt-repository ppa:linaro-maintainers/toolchain
sudo apt-get update
sudo apt-get install arm-linux-gnueabihf

Since TI using the compiler from linaro for AM335x ,can we us that compiler for AM335 development. What are the difference/improvements in the compiler shipped along with  ti-sdk-am335x-evm-07.00.00.00-Linux-x86-Install.bin and arm cross compiler present in ubuntu.

Compiler version in Ubuntu:

user@UbuntuTest:~/test_compiler$ arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.5.3-12ubuntu2) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

user@UbuntuTest:~/test_compiler$

Compiler version in SDK 7.00:

root@PDCServer cross-NG]# /opt/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 4.7.3 20130226 (prerelease)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@PDCServer cross-NG]#

I am going to use compiler in Ubuntu since the compiler shipped along with SDK is not properly linking library files. [see this discussion :@http://e2e.ti.com/support/arm/sitara_arm/f/791/t/397813]

Thanks and regrds

Gokul CG
[gokul.g@kalkitech.in]

  • In this forum we only support the Linaro ARM gcc compiler which ships with Code Composer Studio.  I have it installed on my Windows laptop.  When I look at the version I see yet different information ...

    C:\dir>C:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_7-2013q3\bin\arm-none-eabi-gcc --version
    arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.4 20130913 (release) [ARM/embedded-4_7-branch revision 202601]
    Copyright (C) 2012 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    

    This compiler makes no presumptions about the OS running on the ARM.  That is sometimes called bare metal execution.  The documentation for this compiler may be found in the directory C:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_7-2013q3\share\doc\gcc-arm-none-eabi .  There you will find a readme.txt.  That file discusses some features of the compiler.  It does not clearly state these features are new with this release, but that seems likely.  Two features discussed are the nano libraries (optimized for size) and semihosting.

    The ARM compiler shipped with the TI-SDK is also GCC version 4.7, so it seems likely it has those same features.  For more discussion on that compiler, I recommend you start a new thread in the Sitara device forum.  Or, if you prefer, I can move this thread into that forum.

    Thanks and regards,

    -George