• Push instruction at the start of main

    suhasr
    suhasr

    I am trying to write a C code with just inline functions so that there would be no access to stack. But I see the compiler is inserting a push instruction at the start of the main. Also, this behaviour is not seen every time. With a slight change in the…

    • 16 days ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • GCC linker error

    core
    core

    I am getting syntax error which I try to link the Scatter file. I am using arm - GCC toolchain.

    What is wrong is not specifed.

    The same is working for arm compiler but not for arm gcc

    • Answered
    • 1 month ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • na

    core
    core

    na

    • Answered
    • 1 month ago
    • Community Help
    • Community Help forum
  • GNU Linker strange behavior!

    Mr Bit
    Mr Bit

    Hi guys,

    This is my first comment so, if I'm doing something wrong please point me in the right direction!

    Well,

    I'm currently working on a project using Nordic's Dev Kit PCA10040 which has an nRF52832 SoC (arm cortex-M4). I've been working with GNU…

    • 2 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • gcov arm-none-eabi-ar: two different operation options specified

    _brant
    _brant

    Hi. I want to set up code coverage for my ARM gcc project. 

    I am using the gcc toolchain that is being installed from this location:

    https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2

    in a Docker…

    • 2 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Caller Function Did Not Keep R3

    Weiting Liu
    Weiting Liu

    Hi,

    I have a "test_fun1()" function call to a inline ASM "test_fun2()". I found that the caller, "test_fun1()" did not keep the R3 before jump to "test_fun2()", which cause the result of the  "test_fun1()" is not correct…

    • Answered
    • 3 months ago
    • Software Tools
    • Arm Compilers forum
  • Caller Function Did Not Keep R3

    Weiting Liu
    Weiting Liu

    Hi,

    I have a "test_fun1()" function call to a inline ASM "test_fun2()". I found that the caller, "test_fun1()" did not keep the R3 before jump to "test_fun2()", which cause the result of the  "test_fun1()" is not correct…

    • 3 months ago
    • Software Tools
    • Arm Compilers forum
  • Compiling libgcc not optimized

    EnricoTabanelli
    EnricoTabanelli

    Good moorning,

    I am trying to compile libgcc for arm-none-eabi target from scratch, since I need to compare Floating Point SW emulation on an ARM Cortex-M4 and Risc-V based processors. The problem is that by default GCC includes the optimized version…

    • 3 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • ARM GCC testsuite reports available?

    ajcurtis84
    ajcurtis84

    Hello,

    This is possibly a 2 part question:

    1. I assume that prior to releasing a new version of the GCC compiler for download, the testsuite was executed. Are the test results available?

    2. The GCC source archives provided do not include the testsuite…

    • 3 months ago
    • Software Tools
    • Arm Compilers forum
  • RTX5 on GCC

    gkuhn
    gkuhn

    Hi All, 

    I'm trying to port an already working blinky application to GCC. I have it working on Keil uVision (AC6) and I'm using RTX5. 

    I'm targeting the SAMV71Q21B. I'm using CMSIS-Build (cbuild) provided with CMSIS 5.7.0 to generate the necessary…

    • Answered
    • 3 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • GCC GNU compiler: -fno-short-enums generates multiple warnings

    DanielT
    DanielT

    I use gcc-gnu arm compiler 2019 q4 release. I've added -fno-short-enums compiler flag. It resulted in multiple warnings: "uses 32-bit enums yet the output is to use variable-size enums". Does anyone know the reason of this warning and how to handle it…

    • Answered
    • 4 months ago
    • Software Tools
    • Arm Compilers forum
  • gnu GCC option to enforce 8-byte stack alignment (necessary for R52)?

    BenjaminEhlers
    BenjaminEhlers

    Hello,

    ARM support and R52 TRM have indicated that the R52 core requires maintaining an 8-byte aligned Stack (meaning compiler shall always push/pop registers in even numbers), and I see in my current setup the GNU GCC compiler is not adhering to that…

    • 5 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Dwarf Error: Could not find abbrev number 38 / undefined reference to `memcpy'

    Davy Souza
    Davy Souza

    Hello guys,

    I`m trying to compile a simple UEFI Hello World using EDKII and a GCC cross compiler as described in this post:

    • https://developer.arm.com/tools-and-software/open-source-software/firmware/edkii-uefi-firmware/building-edkii-uefi-firmware-for…
    • 5 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Cannot build first stage gcc for a configured cross-compiler

    m3taw1lL
    m3taw1lL

    I'm trying to build a gcc cross-compiler from source, and whenever I try to build the first stage gcc it results in multiple errors. I'd appreciate any help!

    Ubuntu 18.04.3 LTS
    gcc-7.5.0
    autoconf-2.69

    ./configure options
    --target=arm-none-eabi…
    • 5 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Altera Baremetal GCC toolchain supported on ARM DS Gold Edition?

    Adeeljs
    Adeeljs

    I am working on Cyclone V device with Altera baremetal GCC toolchain in DS-5. Can I continue my work in latest DS Gold Edition with the same toolchain?

    • Answered
    • 5 months ago
    • Open Source Software and Platforms
    • Arm Development Platforms forum
  • Catching C++ Exceptions with GCC Arm None EABI

    Thomas Willson
    Thomas Willson

    I've been struggling to get exceptions to work properly on a Cortex-M4 project with the Arm's GCC distribution. The throw seems to work successfully but not the catch.

    class MyExc : public std::exception {
    	virtual const char* what() const noexcept…

    • Answered
    • 6 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Assessing AWS Graviton2 for running WRF

    Phil Ridley
    Phil Ridley

    Operational weather forecasting is key to informing many important decisions that are made in agriculture, marine, air transport, environment, military, financial, and other sectors. The WRF (Weather Research and Forecasting) model is a widely used US…

    • 6 months ago
    • High Performance Computing
    • HPC blog
  • Catching C++ Exceptions with GCC Arm None EABI

    Thomas Willson
    Thomas Willson

    I've been struggling to get exceptions to work properly on a Cortex-M4 project with the Arm's GCC distribution. The throw seems to work successfully but not the catch.

    class MyExc : public std::exception {
    	virtual const char* what() const noexcept…

    • 6 months ago
    • Software Tools
    • Arm Compilers forum
  • Position inpdeped code for bootloader.

    Semiory
    Semiory

    Hello,

    I'm creating a custom OTA firmware update on cc2640 chip from TI. (Cortex M3)
    For this reason two memory regions are reserved for firmware images.
    The problem is, the code works only if it is stored in one of the regions. (According to the…

    • 6 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Moving from Keil Compiler 5.6 to 6.13

    kelapuress
    kelapuress

    Hello,

    I want to move from Keil Compiler 5.6 to 6.13 for my FreeRTOS based code on Cortex M4. I found out the following problems in doing so,

    1) cmsis_armclang.h was not found. For this I found a compatible version from web and used that, it works but…

    • 7 months ago
    • Software Tools
    • Keil forum
  • How to download aarch64 corss compiler?

    gamecss
    gamecss

    I go to GNU Arm Embedded Toolchain,but only support 32-bin arm.

    I go to GNU Toolchain for the A-profile architecture,but version too old.

    • Answered
    • 7 months ago
    • Software Tools
    • Arm Compilers forum
  • libsupc++_nano.a and C++ exceptions

    tgree
    tgree

    Hi,

    We'd like to add support for C++ exceptions (yes...) to our embedded firmware.  Up until now we've been linking against libsupc++_nano.a and it has worked great.  However, we've found that it does not work for throwing C++ exceptions.  The…

    • Answered
    • 8 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • repository for Gnu Arm Embedded Toolchain

    mastupristi
    mastupristi

    I found this repository https://github.com/ARM-software/toolchain-gnu-bare-metal that seems to contain the files I expected to find.

    However, it contains only one tag that refers to version 9-2019-q4.

    Is this the right repository? Why isn't version 9…

    • 8 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • CortexM4 -mfloat-abi=hard, linker error

    Sven Savic
    Sven Savic

    I am trying to build baremetal binary for cortexm4 using fpu=fpv4-sp-d16 and float-abi=hard options.

    While building with float-abi=soft works fine, as soon as I switch to hardware fpu, i get linker error about 

    VFP register arguments in libc.a(lib_a-abort…
    • 8 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • float-abi hard, linker error on CortexM4

    Sven Savic
    Sven Savic

    I am trying to build a bare metal CortexM4 code for LPC5410x microcontroller. While code builds and links fine using soft floating point option, as soon as I enable hard float-abi, I get linker errors about libc.a

    I am using : gcc-arm-none-eabi-9-2020…

    • 8 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
>