Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
19 views

Disclaimer: I'm expecting that the answer to this question will be that it can't be done, but I'm asking as a just in case. I am working on a JIT'd language with the compiler and runtime implemented ...
idka's user avatar
  • 131
Advice
2 votes
4 replies
69 views

Does anyone know if there is, in c++, any way to determine at runtime the cpu characteristics of the machine that compiled the code? For example, in gcc (which I'm using) the preprocessor variable ...
user3195869's user avatar
3 votes
1 answer
116 views

I stumbled upon different behavior of std::filesystem::path::parent_path() when a path contains leading slashes. Clang says that the parent of ///a is /// (which is what I would expect), but GCC says ...
danpla's user avatar
  • 705
0 votes
0 answers
38 views

I've been trying to get a project on my Windows device to run through WSL, and I've been getting stonewalled by C++ compilation errors. I don't understand anything OS-level very well and ended up ...
Steven Shoemaker's user avatar
3 votes
2 answers
186 views

I have two functions counting the occurrences of a target char in the given input buffer. The functions vary only in how they communicate the result back to the caller; one returns the result and the ...
Devashish's user avatar
  • 193
0 votes
1 answer
86 views

I'm trying to build, using CMake, a program involving C++ and CUDA-C++ code. It used to build file, several months ago, but - now am getting a linker error I'm not familiar with: in function `main....
einpoklum's user avatar
  • 137k
0 votes
2 answers
80 views

I'm on Windows OS and in the past month I used to compile a C/C++ project in Qt Creator IDE using MinGW's gcc/g++ compilers based on POSIX thread model, i.e. compilers that were built with the option -...
ahahfilip's user avatar
0 votes
1 answer
19 views

I have a program targeting a small memory ARM R5 CPU, being compiled with gcc 11.2.0 and ld 2.37.20210721. I have a critical symbol that I would like to know the address of, even if the binary was ...
Seth Robertson's user avatar
0 votes
1 answer
44 views

I try to build some source code containig Win32 API code with GCC 8.3.0 (i686-posix-dwarf) that comes with Strawberry Perl Portable package. It easily builds code, but struggles when it comes to ...
DLWHI's user avatar
  • 145
4 votes
1 answer
92 views

Looking at this benchmark about a custom std::function implementation: https://github.com/PacktPublishing/Hands-On-Design-Patterns-with-CPP-Second-Edition/blob/main/Chapter06/09_function.C I tried to ...
luczzz's user avatar
  • 446
Advice
2 votes
10 replies
380 views

I'm a small-scale C programmer at the moment, and I'm bugged by the question: is Visual Studio worth the annoyance that it is? I've been programming in C and C++ in Visual Studio Code for a while, and ...
Gaspar Liboreiro's user avatar
2 votes
3 answers
92 views

I have created a simple hello.c which contains just the definition of an array: unsigned char arr[4] = {1,2,3,77}; I have then compiled it with gcc -r in order to produce a relocatable object file. ...
Sterpu Mihai's user avatar
3 votes
0 answers
175 views

While investigating some spurious tests in a x86-64Bit Yocto-based Linux system, that there were multi Byte writes to a register of a PCIe card, instead of an expected single double word write. A ...
arminveres's user avatar
5 votes
1 answer
238 views

I expected this to print 11112222deadbeef (it does at -O0), but at -O3 it prints 1111222233334444. https://godbolt.org/z/MfeEM8fqP #include <stdint.h> #include <stdio.h> __attribute__((...
vengy's user avatar
  • 2,467
0 votes
1 answer
102 views

According to OL-PRODUCT-LIFECYCLE.pdf , Table 2-6, GCC-Toolset 15 is available in application stream of Oracle Linux 8.10 . However, dnf install gcc-toolset-15 fails. It can be reproduced in a docker ...
user31649152's user avatar
1 vote
0 answers
42 views

on .elf formats, there is a .comment section that includes compiler & linker names and versions, this is fine since its discardable via editing the linker scripts However on Windows .exe's, while ...
PxHGhost's user avatar
2 votes
2 answers
115 views

After some package upgrade on my Ubuntu 24.04 I stumbled upon inability to build/install/work with almost any of golang packages. So, I'm trying to install staticcheck and get the following error: $ ...
milo's user avatar
  • 1,260
1 vote
1 answer
55 views

There are two ways to create VxWorks applications: Real-time processes (RTP), which are akin to a process in the Unix world. Downloadable kernel modules (DKM), which run in kernel mode, akin to a ...
dividebyzero's user avatar
  • 2,288
0 votes
0 answers
71 views

I have cross-compiled GCC to run on Android arm64 device and i can run it on emulator with "adb shell": 130|generic_arm64:/data/data/com.mycompany.myproject/files/sdk/hardware/tools/avr/bin #...
4ntoine's user avatar
  • 20.6k
2 votes
3 answers
180 views

The following derives from this question but is distinct Consider the following code sample; uint32_t *value = malloc(sizeof(uint32_t)); *value = 0xAAAABBBB; int16_t *subset = (int16_t*) (value); ...
Nil A Curious Programmer's user avatar
1 vote
1 answer
64 views

I'm trying to assemble some basic testing code for an embedded device I'm reverse-engineering, which runs little-endian xtensa threadx. From googling the only assembler that seems to support xtensa in ...
perniciousquery's user avatar
0 votes
0 answers
43 views

Nodes: building a gcc_tree_node for a custom prograimming language compile and base on C++26 the modules are avilable the language using tab-block system every keyword start with '/' I want to ...
Adam Bekoudj's user avatar
1 vote
2 answers
105 views

Currently I'm trying to get a static-linked ffmpeg from source rpi-ffmpeg git. It's a Raspberry Pi oriented fork of original ffmpeg. And my working environment is RaspiOS (port of Debian "...
pyzone's user avatar
  • 11
1 vote
1 answer
41 views

I am trying to build MinGW for Linux (MinGW 13.0.0, GCC 15.2). Following the build instructions, I: Compiled binutils: ../configure --target=x86_64-w64-mingw32 --enable-targets=x86_64-w64-mingw32,i686-...
Coarse Rosinflower's user avatar
2 votes
1 answer
98 views

I would like to use gcc -fanalyzer across multiple c-files (*.c). E.g. given the short program #include <string.h> int get_buff(int id, int** buff) { static int empty[128]; switch(id) ...
knivil's user avatar
  • 857

1
2 3 4 5
846