C++ linker presentation

This commit is contained in:
2026-02-24 10:21:15 +01:00
parent 0fda0d75fb
commit 6f3d98f388
32 changed files with 788 additions and 0 deletions

9
cpplinker/08_lto/foo.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include <cmath>
double heavy_compute(double x) {
double result = 0;
for (int i = 0; i < 1000; i++) {
result += std::sin(x + i) * std::cos(x - i);
}
return result;
}