Convert from int array to char array
After searching around I couldn't understand how to convert a value obtained from an int array [x] to char array [x]Executing this code gives me a null result.I saw syntax like char x = 98;Its work...
View ArticleSTM32F429 hardfaults in __libc_init_array after jumping to application's...
I’m creating a custom USB HS DFU bootloader for my STM32F429 project, using arm-none-eabi-gcc together with the CLion IDE. I’m having trouble jumping to the application code from the bootloader.The...
View ArticleUndefined references for mat.h in C
I'm trying to run the example code found in the examples folder within matlab's extern examples directory./* * Create a simple MAT-file to import into MATLAB. * Calling syntax: * * matimport * *...
View ArticleWhere can I find the mathematical routines in GCC's source? How do the math...
Good night. I'm a Math bachelor and I'm studying log() and series. And I do want to see how GCC compute all those stuffs, it will help me a lot, there's nothing inside math.h I alread read it. I crazy...
View ArticleAutomation studio code coverage problem (no gcda file on target)
is there anyone who tries to do code coverage in Automation studio project? I am working on it and at compilation time the .gcno are genarated, but on runtime on target system no .gcda data is...
View ArticleMulti target makefile with subfolders
My project has the following structure:\---Project+ Makefile |+---source | +---target1 | | t1_lib.c | | t1_main.c | | | +---target2 | | t2_lib.c | | t2_main.c | | | \---common | common_lib.c...
View ArticleCompiling c++ OpenACC parallel CPU code using GCC (G++)
When trying to compile OpenACC code with GCC-9.3.0 (g++) configured with --enable-languages=c,c++,lto --disable-multilib the following code does not use multiple cores, whereas if the same code is...
View ArticleGCC Backend Development - How do I fix `insn does not satisfy its...
I am working on writing a GCC backend for a new architecture. When I try to compile the following simple program with -O0 (note: this error does not occur when optimizations are enabled):int main(){...
View ArticleWhat determines where the exception frame goes on Cortex-M4?
I'm struggling with an exception stack frame writing over my local/automatic/stack variables. I'm using FreeRTOS 8.2.1 and Microchip ASF for SAM4LDeveloping with Eclipse MCU 2018/09 and Segger J-Link...
View ArticleHow can I fix gcc error when install multidict in alpine docker container?
Q:In my docker container, i use apline linux system which has been pre install gccapk info:bash-4.4# apk info....gccBut when I install multidict, failed by gcc errorbash-4.4# pip install...
View ArticleHow to edit (or even find) the file called common.mk to edit the default...
Here's the background: I need to download some code form github but I don't know much about Linux. I ran the command git clone with the desired code and got it and stored it in a folder. Then, as...
View ArticleWith gcov, is it possible to merge to .gcda files?
I have the same source files (C and Obj-C) being compiled into two targets: the unit test executable and the actual product (which then gets integration tested). The two targets build into different...
View Articlegcc differences between -O3 vs -Ofast optimizations
I was just reading through the gcc manual to find out the difference between -O3 and -Ofast.For -O3-O3Optimize yet more. -O3 turns on all optimizations specified by -O2 and also turns on the following...
View ArticleCannot convert ‘bool’ to ‘NEDElement*’
During installation of Omnetpp ,in final step "make" ,I encountered an error which says **`cannot convert ‘bool’ to ‘NEDElement`** in return np->getErrors()->addError("", "unable to allocate work...
View ArticleGCC #pragma arm section
I am really shocked that GCC does not support many #pragma like other compilers. I have a huge C90 code base with millions of lines of code, the biggest issue is converting #pragma arm section to...
View ArticleWhere is PATH_MAX defined in Linux?
Which header file should I invoke with #include to be able to use PATH_MAX as an int for sizing a string?I want to be able to declare:char *current_path[PATH_MAX];But when I do so my compiler...
View Articlegcc - warning: implicit declaration of function 'get_int'
I am doing the cs50 course and decided to run the code from there on my pc.I have the following code:#include "cs50.h"#include <stdio.h>int main(void){ int n; do { //gets an integer from a user n...
View ArticleGCC 8.3 ARM Assembly error when building Linux kernel 3.14.17 in Buildroot...
Migrating from Buildroot 2015.08.03 with GCC 4.9.3/Make 3.81/gblibc 2.20 to a Buildroot 2020.02 setup to support GCC > 8.x/Make 4.1/glibc 2.30.Encountered an issue with GCC 8.3 compiler when...
View Articlestop clang -MM stripping path for object files
I have a subdirectory with source in it. I would like clang++ -I. -MM path/to/source.cpp to give me the following output:path/to/source.o: path/to/source.cpp path/to/source.hInstead it gives me...
View ArticleUsing MinGW compiler in Visual Studio 2029
I trying to compile anything in Visual Studio 2019 with MinGW g++ compiler. I downloaded it from here. I know that msvc compiler is good enough but I need MinGW GNU gcc compiler for Olympics. I...
View Article