Skip to main content
0 votes
1 answer
214 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
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
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
38 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
0 answers
28 views

My project defines a module ocr, imports std and includes headers from a few libraries, for example: module; #include <httplib.h> #include <tesseract/baseapi.h> #include <leptonica/...
Torsten Römer'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
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