Questions tagged [compiler]
A compiler transforms code written in a source language to a (binary) target language.
132 questions
3 votes
0 answers
86 views
Can ARM linker produce warnings after named section overflow?
In my project on STM32F427, MDK-ARM 5.39.0.0, ARM compiler v6.21. I use a scatter file to define named sections: ...
1 vote
0 answers
210 views
STM32 debugger shows wrong stack pointer
Before explaining the problem I want to say as a disclaimer that I am a total beginner with baremetal coding in ARM, so the problem could be anywhere. I am following this guide to move my first steps. ...
1 vote
0 answers
129 views
Do the Xtensa ESP32 SOCs use the same or different compilers/toolchains?
I'm completely confused about Espressif's SOC family of products. I constructed a preliminary table (maybe incorrect) below based on my understanding of their core microcontrollers and their ...
0 votes
1 answer
199 views
IAR how to get the value of environment args [closed]
I would like to know what is the easiest way to get the value from the IAR's environment args such as $TOOLKIT_DIR$ or $PROJ_DIR$. I know what method uses Windows for it's environment variables, but I ...
0 votes
1 answer
3k views
How do I make my Microchip MPLAB X IDE project use the free version of the XC32 compiler?
I was previously compiling my C and C++ PIC32 mcu project in Microchip's MPLAB X IDE v6.15 with a paid Pro XC32 compiler license. My license has expired and no amount of buying a new one will fix it, ...
1 vote
1 answer
227 views
arm-none-eabi-g++ can't find cc1plus unless run from gdb?
I am trying to port some simple c++ code to armv7e-m. I have experience compiling c++ for arm but this is my first time setting up the toolchain from scratch. Initially, I was having the following ...
1 vote
0 answers
100 views
Delete modules and variables that are not used in IAR
I wanted to use a standard library (CMSIS-DSP) and I only used a few functions & variables of that library, but it's like the whole library has been added to my project. And it takes a lot of ...
0 votes
0 answers
1k views
How to successfully build for ARM Cortex-M0 using arm-gcc-none-eabi?
I want to debug the following source file to a cortex M0 microcontroller. ...
0 votes
1 answer
651 views
Where is this function coming from and how to get rid of it?
Last night there was an attempt to have CMake build a binary instead of the IDE. Got it to compile and spit out an .elf file, however I noticed when I was trying to compare the IDE .elf vs the CMake ....
3 votes
2 answers
185 views
Using an internally developed RTOS, is this expertise or madness? [closed]
I work for a company which is using a very efficient, but difficult to use RTOS for the embedded projects which they design bottom up, hardware included. This RTOS is 100% made from scratch internally ...
9 votes
1 answer
818 views
Why is synthesis so slow compared to compilation?
Even simple HDL designs takes hours to synthesize, while compiling the Linux kernel on the same machine completes in under 15 minutes. Please explain why with a breakdown of the tasks the synthesizer ...
-1 votes
1 answer
589 views
Net PWMA_IC3 contains Multiple Input Ports(PWMA,PWMA) [duplicate]
I have to give two different PWM Input to my two Gate driver ICs my design. i have taken two output ports PWMA and PWMB hoping, I will make them 180° apart in phase in programming. 2)I want to give ...
1 vote
1 answer
864 views
How to suppress unused C library functions in SDCC compiler?
Previously I used the COSMIC compiler for STM8 development. In a cosmic compiler, there is an argument called 'SPLIT' which can be passed while using it on the command line. This allows the linker to ...
0 votes
1 answer
263 views
Xilinx Zynq7k 020 linux, error when compiling u-boot
I get the following errors when compiling u-boot (SoC Zynq7k 020) What I did: git clone https://github.com/Xilinx/u-boot-xlnx.git ...
3 votes
1 answer
311 views
How are embedded C compilers different from C compilers used for desktop applications?
I've started learning about embedded systems and wondering since the compilers used for embedded applications aren't the same as the ones used for desktop applications; whether they behave differently ...