• -print-libgcc-file-name gives thumb while -marm is used

    Arjan
    Arjan

    Dear Forum,

    Using

    ~$ arm-none-eabi-gcc -v                                                                             
    Using built-in specs.
    COLLECT_GCC=arm-none-eabi-gcc
    COLLECT_LTO_WRAPPER=/opt/gcc-arm-none-eabi/bin/../libexec/gcc/arm-none-eabi/9…

    • 1 month ago
    • Processors
    • Cortex-A / A-Profile forum
  • Problem in understanding behaviour of GCC compiler (aarch64-none-elf-gcc) on Neon intrinsics for ARM cortex a53

    khan777
    khan777

    Hi,

    I am using IDE Xilinx SDK 2019.1 for my application and running it on ARM cortex a53  processor with Neon and floating point engine support available. I am working on a bare metal application.

    The problem I am facing is that, I am unable to understand…

    • 3 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • compiler optimization options for ARMv8 GCC compiler on ARM cortex a53 (bare metal application)

    khan777
    khan777

    I am using ARMv8 GCC compiler(aarch64-none-elf-gcc) for my bare metal application on ARM cortex a53. I am using neon intrinsics with plain C in my code so I would like to ensure to use all optimization option available for this compiler.

    I tried -mfpu…

    • 2 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • Optimization of Neon Intrinsics on ARM cortexa53

    khan777
    khan777

    I am using ARMv8 GCC compiler and I would like to optimize Neon Intrinsics code for better execution time performance. I have already tried loop unrolling and I am using look up table for the computation of log10. Any ideas?

    Here is the code:

    static inline…

    • 2 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • gcc does not generate correct code while building PIC

    rgujju
    rgujju

    Hey guys,

    I have been exploring building PIC using the gcc toolchain and I think there is a bug.

    I first build a shared library using 

    arm-none-eabi-gcc -shared -mcpu=cortex-m4 -mthumb -Wall -g -fPIC -fmessage-length=0 --specs=nosys.specs mylib.c -o libmylib…

    • 3 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Cortex A8 Problem with RVDS or ARM GCC?

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

    Hi All,

              My application is not running in ARM Cortex A8. But same application is working in ARM9e. I have compiled using --cpu=cortex-a8 or --cpu = 7-a. Is their any specific…
    • over 6 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • Shifted binary produced by arm-none-eabi-objcopy

    en2senpai
    en2senpai

    Greetings, 

    Im currently trying to fix a strange behavior of objcopy, which sometimes generates invalid output binary image with 0x4 byte shift. 

    I found this issue because this shift was affecting my __init_array_start__ table (which is indeed pointing…

    • 10 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • Shifted binary generated by arm-none-eabi-objcopy

    en2senpai
    en2senpai

    Moved to:

    https://community.arm.com/developer/ip-products/processors/f/cortex-a-forum/43775/shifted-binary-produced-by-arm-none-eabi-objcopy

    • 10 months ago
    • Processors
    • Classic processors forum
  • Warning: It blocks containing 32-bit Thumb instructions are deprecated in ARMv8 with GCC 4.9

    Carlos Delfino
    Carlos Delfino

    Dear colleagues.

    I am compiling the Intel TBB in an effort to optimize my code to the Cortex-M53, however, because I was still forced to use GCC 4.9 I'm getting some warning messages about the use of  32bit Thumb Instrucions in IT blocks:

    Warning…
    • Answered
    • over 3 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • arm-none-eabi-gcc (bleeding-edge-toolchain) 9.1.0

    Freddie Chopin
    Freddie Chopin

    I've just created another release of my bleeding-edge-toolchain script, which builds a complete toolchain for ARM microcontrollers. This toolchain uses the most recent versions of all possible components:

    • gcc-9.1.0
    • newlib-3.1.0
    • binutils-2.32
    • gdb…
    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • Linker in gnu arm toolchain says "group ended without start" thought there is no such option in my build

    ShyamThella
    ShyamThella

    shyam@shyam:~/projects/zynq/microzed/linux_source/Test_Chips$ make
    make -C  /home/shyam/projects/zynq/microzed/linux_source/Test_Chips/../dev_tools/build
    make[1]: Entering directory `/home/shyam/projects/zynq/microzed/linux_source/dev_tools/build'
    Making…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Installing Arm GCC toolchain on ubuntu

    chumbichubago
    chumbichubago

    Hello,

    I am trying to learn with ARM, and I have downloaded the toolchain .tar and extracted it to my home directory on Ubuntu 16.04 64bit. As you know, GNU GCC is already on the system. I do not know what to do now, I see no step by step instructions…

    • Answered
    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • How much stack memory do I need for my Arm Cortex-M applications?

    Joseph Yiu
    Joseph Yiu

    Overview of stack size requirement estimations in Cortex-M based applications

    1 - Overview

    “How much stack memory do I need for this application?” - This is a common question for many software developers working on applications that run on microcontroller…

    • over 4 years ago
    • Processors
    • Processors blog
  • Gcc naked attribute leaves some trailing function prologue asm instructions

    roel0
    roel0

      I've the following implementation for a svc exception handler on a cortex-m0:

        int  __attribute__((naked))  
        sv_call_handler(uint32_t n, uint32_t arg1, uint32_t arg2, uint32_t arg3,  
                        uint32_t arg4, uint32_t arg5)
         {
              irq_off();


    When I built it for cortex…

    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Want to try out stable GCC 7 on your ARM microcontroller?

    Freddie Chopin
    Freddie Chopin

    EDIT: Stable GCC 7.1.0 is already released - see first reply below for details!

     

    If you're very impatient waiting for the full GCC 7.1.0 release (expected this month), you can try experimental GCC 7 version with your ARM microcontroller right now (…

    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • ARMv8-M - toolchains / virtual platforms

    Pierre
    Pierre

    Hello,

    I would be interested to try the new features of the ARMv8-M architecture, in particular v8-M TrustZone, but I can't find necessary tools in order to do so.

    1. I need a toolchain that supports the new instructions introduced with v8-M (SG, BXNS…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • Compacting 4x 24 bit values into 3x 32 bits

    Vincent van Beveren
    Vincent van Beveren

    Hello,

    I have application running on an Cortex M3 MCU. The MCU runs a FIR filter which results in arrays of 32 bit values, but only the 24 least significant bits are used. Before storing this data to memory I want to compact four 24 bit words into three…

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • compiling kernel: -mcpu=cortex-a15 vs -march=armv7ve?

    Aid Farhan Maarof
    Aid Farhan Maarof

    I'm compiling an Android kernel for my Xperia Z using Linaro GCC 4.9. My question is, which option gives better optimization -mcpu=cortex-a15 or -march=armv7ve? Or do they give the same results?

    • Answered
    • over 6 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • How to compile with gcc toolchain that uses ARM neon instructions

    Haris
    Haris

    Hi,

    I would like to ask which version of gcc and with what flags , may I compile some c code to assembly code that uses arm neon coprocessor for ARMV7-A processor. Of course I want to use the processor itself but also the coprocessor. Is this gcc optimal…

    • Answered
    • over 6 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • Hello World with Bare Metal and QEMU

    Carlos Delfino
    Carlos Delfino

    I have followed some tutorials on the internet and found one in particular quite interesting and didactic for those just starting to program ARM Bare metal. The Blog é Freedom Embedded | Balau's technical blog on open hardware, free software and…

    • over 5 years ago
    • Processors
    • Processors blog
  • How do I do <x> in assembler?

    Peter Harris
    Peter Harris

    One of the most common classes of question in the ARM community which I answer is "How do I do <x> in ARM assembler?". While I am always happy to answer these questions, I thought it would be useful to write blog containing a few handy self-help tips…

    • over 6 years ago
    • Processors
    • Processors blog
  • "Hello World" in Assembly

    Jacob Bramley
    Jacob Bramley

    Chinese Version: 汇编 "Hello World"

    Assembly language can be fairly daunting, even for experienced software engineers. The lists of strange instructions and squiggles can be hard to read at the best of times; indeed, that is why we use languages…

    • hello_world.tar.gz
    • over 6 years ago
    • Processors
    • Processors blog
  • View related content from anywhere
  • More
  • Cancel