Skip to main content
1 vote
0 answers
36 views

Similar question: Assembly return address I want to write a function to print the return address of the current function. This is code that prints %ebp+4: void backtrace() { int ebp; asm ("movl %%...
BranchPredictor4000's user avatar
0 votes
1 answer
48 views

While refactoring some legacy code I ran into some strange behaviour of CMake+GCC that I can not explain or correct. This is what I have: Debian Trixie with GCC 14.2.0 and CMake 3.31.6 A test project ...
PapaAtHome's user avatar
1 vote
0 answers
86 views

I have built GCC 16.0 trunk in order to test out the new C++26 reflection capabilities. I am developing using WSL (Ubuntu) and VSCode. As it stands, I have the following basic example in a simple ...
Dnarok's user avatar
  • 21
0 votes
0 answers
90 views

I follow How to use module `std` with gcc to generate "gcm.cache/std.gcm" on Windows using GCC 15.2.0 and ran g++ -std=c++23 -fmodules -fsearch-include-path -c bits/std.cc at "C:\bak\...
Jason's user avatar
  • 1
1 vote
0 answers
35 views

The code in question void _start() { const char msg[] = "Hello, World!\n"; long ret; __asm__ volatile ( "mov $1, %%rax\n" "mov $1, %%rdi\n" ...
user3786219's user avatar
0 votes
1 answer
213 views

I am writing a logging utility in C and want __FILE__ to print the full absolute path to the source file: /home/j/OSL/Separate.c But it still prints a relative path: ../Separate.c even though I am ...
JacobNowitsky's user avatar
44 votes
2 answers
3k views

I encountered a very odd issue in a larger project and after a lot of debugging reduced it to this minimal example. My idea is that a long comma-expression gets truncated after hitting some threshold. ...
Odeaxcsh's user avatar
  • 807
Advice
0 votes
4 replies
27 views

I am trying to install CBLAS on Debian 13, and am, as far as I can see, following the instructions in the README file that came in the folder. When I do a 'make all', I get the following errors that I ...
Klagor Mundavi's user avatar
4 votes
2 answers
241 views

I am using com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706 AKA arm-none-eabi-gcc (GNU Tools for STM32 13.3.rel1.20240926-1715) 13.3.1 20240614 to ...
personal_cloud's user avatar
0 votes
1 answer
88 views

I'm trying to build mingw 13.0.0 with gcc 15.0.2 toolchain on Windows using another mingw 13.0.0 with gcc 15.0.2 build under busybox shell. As described in this tutorial, I first configured, built and ...
DLWHI's user avatar
  • 151
5 votes
4 answers
406 views

Compile and run the code below: #include <stdio.h> struct s { int *i; }; void f(struct s *foo, const int a, const int b) { foo->i = (int []){a, b}; } int main(void) { struct s ...
vslrs's user avatar
  • 43
5 votes
3 answers
221 views

I noticed there was a double precision divide after all log2 calls when using cygwin64 3.6.4 and using compiler options -O3 and -D_FILE_OFFSET_BITS=64 so I wrote a small program to illustrate it. ...
George Rambus's user avatar
1 vote
3 answers
134 views

I've encountered some "scaring" compiler warning, which I can not understand. Here is code snippet: char *__wp_load_htt(char *httdir, char *tname) { char fname[512]; ...
dee0xeed's user avatar
  • 123
Advice
0 votes
7 replies
81 views

So I am currently investigating a random issue and found the cause to be that, during looping and accumulating floating numbers in an unordered container, traversing order difference leads to the ...
PkDrew's user avatar
  • 2,301
1 vote
1 answer
71 views

There's a nice terminal app called Termux for android phones. The app provides a fully fonctional nix terminal and a package manager. The app dev is dead, and only some packages are maintained. You ...
Olórin's user avatar
  • 3,910

15 30 50 per page
1
2 3 4 5
2820