Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [gcc]

GCC is the GNU Compiler Collection. It's the de facto standard compiler for C, C++, Go, Fortran, and Ada on Linux and supports many other languages and platforms as well.

0 votes
1 answer
56 views

Passing `volatile` buffers to library functions which do not take `volatile`

I have a multi-processor system with a "shared" memory region used for communication. In some cases one of the processors needs to process some considerably large data in the shared memory ...
Eugene Sh.'s user avatar
  • 18.1k
0 votes
0 answers
21 views

Problems compiling CMSIS-RTOS library in ARM A7 firmware

I'm writing a firmware for STM32MP135 A7 ARM micro. I'd like to include CMSIS-RTOS2 libraries and compile a simple basic program (to blink 2 LEDS in 2 different threads) by gcc cross toolchain and ...
SteMMo's user avatar
  • 408
0 votes
0 answers
20 views

Libsanitizer Error When Building GCC Cross-Compiler

I'm encountering compilation issues while building a GCC cross-compiler for RISC-V. Here is the last part of the GCC make command output if it might be helpful: ../../../../../src/gcc-14.1.0/...
lotobis's user avatar
2 votes
2 answers
91 views

C++ Compile-Time Class With std::vector Member Variable and Use It's Data at Run-Time [duplicate]

I am trying to make a writer class, which would be used to turn data into a binary stream, at compile-time using a std::vector, and then converting it to std::array to be used at runtime. eg: #include ...
user15137921's user avatar
0 votes
1 answer
31 views

Tensorflow 2.17.0 build failed with bazel linux

I download the source code of tensorflow-2.17.0 from github, then i run 'configure' and build with bazel-6.5.0 successfully, > bazel build //tensorflow/core:tensorflow then i create a folder 'test'...
WardenAllen's user avatar
1 vote
0 answers
55 views

No compile time errors or warnings are being shown on my terminal window in vs code

I am using c language and I am working on windows using gcc compiler..I have also installed extensions like code runner and c\c++ Microsoft one too. For example, If I put an assignment operator in the ...
Jasmeet Kaur's user avatar
0 votes
1 answer
26 views

When cross-compiling for an ARM embedded target using GCC, is it reasonable to expect the Windows and Linux versions to produce identical output?

I have a build for an ARM embedded target that is developed using eclipse and GCC toolchain release 12.2-rel1. I have set up a build in TeamCity that runs in a Linux-based Docker container, also using ...
Tim Long's user avatar
  • 13.7k
1 vote
0 answers
34 views

C - Packed struct - different behavior in different compilers

I've wrote a function that writes file-info into another file (in bin-format). I've built it for WINDOWS executable, in two different environments: eclipse, using mingw gcc: GCC: (MinGW.org GCC-6.3.0-...
LYB's user avatar
  • 23
-1 votes
0 answers
17 views

Im new to C++ idk how to run the code and im getting some errors

I am new to C++ because I've been using python and I just learned how to install packages with vcpkg and I installed dpp/dpp.h but when I put it in a file it says it recognizes the package but as ...
IG2MB's user avatar
  • 1
1 vote
0 answers
36 views

Correct Method to Place Multiple Arrays in a Custom Flash Section in C using GCC

I need to store a constant array in flash memory at a specific location using GCC in my embedded C project. For a uint32_t value, I managed to do it like this, and it works: const uint32_t ...
WITC's user avatar
  • 197
-1 votes
0 answers
17 views

Error while compiling with makefile and gcc [closed]

I'm new to this forum, so please forgive me for any mistakes. I'm encountering an error while compiling a project created with CubeMX 6.12.0. The error message is: make[1]: arm-none-eabi-gcc: Argument ...
massimo perdigo's user avatar
0 votes
0 answers
13 views

Why does clang fail on mabi but not gcc?

Given my file test.c: #include <stdarg.h> int a(int b, ...) { __builtin_ms_va_list list; __builtin_ms_va_start(list,b); } I try: $ clang -m64 -c -g -O2 -mabi=ms test.c -Wall -Wextra which ...
theEpsilon's user avatar
  • 1,879
0 votes
0 answers
14 views

How to use gcc compiler on Github windows runners when using scikit-build-core [duplicate]

I'm using scikit-build-core to build my c++ program on github windows runners. I would like to use gcc instead of microsoft visual studio as the compiler. Below is how I configure compiler settings in ...
Jiawei Lu's user avatar
  • 537
-1 votes
0 answers
32 views

i386-elf-gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory

I have this c code: extern "C" void main() { *(char*)0xb8000 = "Q"; return; } and when I try to compile it whit this command: i386-elf-gcc -ffreestanding -m32 -g -c "...
Nicolas Prigge's user avatar
0 votes
1 answer
80 views

why huge local variable array doesnt cause segment fault

#include<iostream> using namespace std; int main() { char arr[40960]; for(auto i =0;i<40960;++i) arr[i]='c'; std::cout<<sizeof(arr)<<std::endl; ...
Rain's user avatar
  • 47

15 30 50 per page
1
2 3 4 5
2787