• Significant performance improvements in GCC 10 through Vectorization and In-lining

    This year's GNU Compiler Collection (GCC) release not only contains a plethora of new Architecture features, but is also the most performant GCC release to date. 

    Arm, together with various partners and the GCC community, have been hard at work on…

  • Making the most of the Arm architecture with GCC 10

    The GCC 10.1 release

    The GNU Compiler Collection is used to program a rich variety of systems: from the fastest of supercomputers to the tiniest of micro-controllers. We at Arm love ecosystems. The recently released GCC 10.1 is the culmination of a year…

  • Weak symbols with GCC and ARMCC

    Hi all,

    I am trying to use the weak attribute for global initialized variable. It works for a function I am also trying to re-implement, but fail to do so for variable.  I am trying to do it for quite common scenario: I have layered structure to support…

  • Linking an armcc pre-compiled lib with a GCC project

    Hi,

    Would it be possible to link a library that has been compiled using armcc 5 to a GNU (GCC) based project?

  • How to choose GCC options for Neon r0p4

    ARM cumunity,

    We are design a SOC with Neon (r0p4) integrated. I saw the GCC have multiple options for Neon:

    Known ARM FPUs (for use with the -mfpu= option):
    auto crypto-neon-fp-armv8 fp-armv8 fpv4-sp-d16 fpv5-d16 fpv5-sp-d16 neon
    neon-fp-armv8 neon-fp16…

  • arm-...-gcc 8.3.1 VS 4.9.3

    Dears,

    I have been compiling with arm-none-eabi-gcc version 4.9.3 for a while; and everything were just fine with a Cortex-M0  I recently have tried using version 8.3.1 and things are not going as well.

    I compiled the exact same code with the released…

  • Build failed when cross-compiling using arm-linux-gnueabihf toolchain in ARM DS

    I have downloaded the latest linaro gcc arm-linux-gnueabihf for cross compilation from windows to linux. I tried to test it with a simple c++ HelloWorld code but I couldn't get the project to be successfully built. 

    #include <iostream>
    #include <bits…

  • Illegal exception in __start in newlib crt0.s for Cortex R52

    Hi

    I am attempting to run an in house benchmark on a cycle accurate model of the ARM Cortex R52, in a baremetal setup. I compiled and built my benchmark using GCC 7.2.1 - gcc version 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] (GNU…

  • arm-eabi-gcc-8.3.0.exe: error: CreateProcess: No such file or directory

    Hi,

    We have been trying to build with GNU ARM tool chain (Cortex-A specific tool) "gcc-arm-8.3-2019.03-i686-mingw32-arm-eabi", but we see the following error:

    arm-eabi-gcc.exe error: CreateProcess: No such file or directory

    Verified all the…

  • What are the compile option differences between --specs=nosys.specs and --specs=rdimon.specs in arm-none-eabi-gcc?

    1.

    As title. 

    and what time I need to add options  ?

    I know add --specs=nano.specs thas is mean using newlib-nano when I use arm-none-eabi-gcc.

    In readme, rdimon is for semihosting. Nosys is for retarget.

    We use bare metal system and printf retarget to AXI…

  • address sanitizer in ARM GNU-A 8.2-2018.11 arm-linux-gnueabihf

    Hi all,

    I'm trying to compile my application with -fsanitize but when linking it fails complaining that it cannot find any library for the linker flag '-lasan'. I did check and it seems that the ARM toolchain 8.2-2018.11 does not ship with…

  • what library used on arm gcc none eabi ?

    1. Does arm-gcc-none-eabi and newlib is packed?

    2. Why arm-gcc-none-eabi need glibc 2.14?

    I have a problem when I use arm gcc none eabi cross compiler.

    "version GLIBC_2.14 not found"

    Then I install glibc 2.14 and add to LD_LIBRARY_PATH. It's perfect…

  • Interoperability for c++ between armclang and gcc(linaro)

    Hi;

    I have built 'Compute Library'  as said in Bare Metal Building section of documentation by using Linaro toolchain on Ubuntu. I'm targetting bare-metal.

    On another machine, I want to use this library but this machine has an Arm Compiler…

  • How to assign own glibc path to aarch64-elf-gcc

    1.
    aarch64-elf-gcc need use glibc2.14 while our central version up to glibc-2.12 only
    2.
    I have downloaded glibc-2.14 in my local directory
    3.
    There is a limitation in my environment that if I add glibc-2.14 path into LD_LIBRARY_PATH directly, DS-5 eclipse…

  • How to use aarch64-elf-gcc to print hello world

    1.
    aarch64-elf-gcc need use glibc2.14 while our central version up to glibc-2.12 only
    2.
    I have downloaded glibc-2.14 in my local directory

    3
    I try to set LD_LIBRARY_PATH to my local glibc-2.14 directory then isuue following command:


    >>>>>>>>>>>>>>>>>>…

  • Problem with GCC and string.h and stdlib

    Note: This was originally posted on 8th October 2008 at http://forums.arm.com

    Hi everyone,

    i have following trouble with keil arm gnu compiler. i have recently moved to gnu and now i am having hard time to set it up.

    description of problem: i am using real…
  • Pass in an immediate value to an inline assembly function

    Note: This was originally posted on 6th March 2009 at http://forums.arm.com

    Hi,

    I would like to pass in an immediate value to an inline assembly function, such as in this example:

    inline int foo(int a, int b, const int immed)
    {
       register int result;…
  • ARM GCC Retarget dosen't work in coresight example

    I have not seen any axi transfer when I run coresight example helloworld.

    And the cpu program counter stopping in some code

    I have some questions when I check my IMAGE0.lst file

    1 .why printf is branch to putchar instead of printf in coresight example?

    2. Is…

  • Cross-compiling for Cortex-A9 with GCC

    Arm offers 2 different GCC toolchains: one for Cortex-M/R devices and the other one for Cortex-A devices. However, in the Cortex-M/R toolchain documentation, it is specified that Cortex-A targets are accepted too, so this confuses me: why is there another…

  • Support for std::thread and other synchronization primitives, e.g. std::mutex...

    I would like to know if any of the compilers/libraries for Cortex-M support the std::thread type (from the <thread> header) or if there is any plan to support that in the near future. I am interested in both Keil MDK / DS-5 or GCC for ARM. Thank you!…

  • Code reuse attacks: the compiler story

    How does a developer prevent an attacker from taking control of a program when the developer is providing the tools to the attacker? What are code reuse attacks and how can the Arm Architecture remove the vulnerabilities? How can someone use these architectural…

  • gcc 8.3-2019.03 windows i686-mingw32_arm-linux-gnueabihf?

    hello,

    we use the linaro build: gcc-linaro-4.9.4-2017.01-i686-mingw32_arm-linux-gnueabihf and want now to update to v8.3.

    is the new version, or similar version gcc v8.3 also available for windows?

    i found only the bare-metal versions for windows.

    thanks…

  • ST HAL Driver + ST USB Stack middleware failing using GNU GCC

    Dear all,

    I am on the process of switching to GNU GCC for compiling an already working project. Most of the functionality has been tested. There is a failing test though: The USB VCP drivers do not seem to perform good.

    The client side (PC-Windows) is…

  • selected processor does not support `cpsid i' and `cpsie i' in arm mode.

    hi everyone,

    i'm new with ARMprocessor and dont know too much about DS-5. just alittle bit from my Softwares >>> SoC EDS 17.1 (from Altera)  - DS-5 5.28 and my OS is Windows 10. I am using DS-5 for my SoC FPGA (DE0_Nano_SoC) Altera, which…

  • the relationship between startup_ARMCM3.s and gcc_arm.ld from Cortex-M3 of MDK5.

    Dear All,
    Currently now I'm trying to undersatnd the relationship between startup_ARMCM3.s and gcc_arm.ld from Cortex-M3 of MDK5.
    the following codes are refered from Cortex-M3 of MDK5 example code.


    1 //---startup_ARMCM3.s----------//
    2
    3 __HeapLimit…