Skip to main content
0 votes
0 answers
34 views

I'm cross-compiling avr-gcc statically (in order not to depend on Android linker) to work on aarch64 android devices. gcc is compiled with the flags: generic_arm64:/data/data/myapp/files/sdk/hardware/...
4ntoine's user avatar
  • 20.6k
-6 votes
1 answer
93 views

Let's say I have the following function in a static library libutil (with the definition in one of the library's translation units, so it can't be inlined while compiling the caller's translation unit)...
Torph's user avatar
  • 36
1 vote
0 answers
21 views

I want to activate LTO only outside my debug build in CMake. For Linux, this was as easy as if(${CMAKE_BUILD_TYPE} STREQUAL "Release" OR ${CMAKE_BUILD_TYPE} STREQUAL "Deploy") ...
Maki's user avatar
  • 399
0 votes
1 answer
136 views

I want to use my CMake script to cover both GCC and Clang for LTO and function-level linking (or whatever it's called -fdata-sections/-ffunction-sections). I have: add_compile_options( $<$<...
Zebrafish's user avatar
  • 16.3k
6 votes
0 answers
171 views

I have tried using clang -fPIC -flto -fsanitize=cfi -fvisibility=hidden -shared add.c -o libadd.so but I see the generated .so file doesn't have any cfi related symbols when used readelf? Please ...
Vamsi Simhadri's user avatar
0 votes
0 answers
30 views

I have firmware a project that needs to have some .text sections split up into different memory areas. They are spilt using the names of the source-code files, or by function name wildcards in the ...
thecoder's user avatar
1 vote
1 answer
492 views

Using lto RUSTFLAGS='-Clto' fails the build with the following error: error: lto can only be run for executables, cdylibs and static library outputs error: could not compile `rustls-platform-verifier` ...
A. K.'s user avatar
  • 39.3k
1 vote
1 answer
282 views

I am using nightly rustc and LLVM 19.1 using clang-cl. I also unsuccessfully tried stable rustc 1.81.0 and clang-cl 18.1.8. Versions > rustc +nightly --version --verbose rustc 1.83.0-nightly (...
Angelicos Phosphoros's user avatar
0 votes
1 answer
148 views

I am trying to build the Blink sample for the DA14531 with Jlink, but I get Error messages related to LTO. How to solve this error? use of LTO is disallowed in this variant of Arm Compiler for ...
Eddie Iglesias's user avatar
0 votes
1 answer
198 views

There's an old project which needs to redefine symbol in build progress. I want to enable -flto, but it seems unable to redefine symbol now. echo "int foo(){return 0;}" > foo.c clang -c ...
kkocdko's user avatar
  • 428
1 vote
0 answers
111 views

(IMO) Cons when not inlined: call is unconditional branch (jump) with stack manipulation, and the x86 instruction table specifies it needs 4 uops/inst. and has reciprocal throughput of 2 for Zen4 ...
hurryman2212's user avatar
1 vote
0 answers
100 views

I'm tring to use gcc link-time optimizer, but encounter some issue related to the gcc linker cannot correctly resolving references to symbols in 'newlib_syscalls.c'. However, same source code , ...
sskk's user avatar
  • 11
1 vote
0 answers
58 views

Problem Statement Assume 32-bit MIPS I, and code written in C for an embedded system. When loading from an externally defined variable (extern int myVar;) that comes from a symbol defined in a linker ...
Zach F.'s user avatar
  • 170
2 votes
0 answers
60 views

TL;DR: How do I fix* inline failures by LTO on compiler-generated functions? (* by "fix" I mean "eliminate warnings in a manner consistent with best practice." I want to remove the ...
mrp's user avatar
  • 71
0 votes
0 answers
81 views

I am trying to adapt the makefile presented here: https://github.com/EnzymeAD/Enzyme/issues/710 into a CMake file. Background: My library uses Enzyme AD system for lto generation of gradients. And on ...
ipcamit's user avatar
  • 392

15 30 50 per page
1
2 3 4 5
12