Closing the gap: cross-language LTO between Rust and C/C++
http://blog.llvm.org/2019/09/closing-gap-cross-language-lto-between.html [blog.llvm.org]
2019-09-19 19:46
tags:
c
compiler
development
rust
Link time optimization (LTO) is LLVM’s way of implementing whole-program optimization. Cross-language LTO is a new feature in the Rust compiler that enables LLVM’s link time optimization to be performed across a mixed C/C++/Rust codebase. It is also a feature that beautifully combines two respective strengths of the Rust programming language and the LLVM compiler platform:
source: L
30% faster Windows builds with clang-cl and the new /Zc:dllexportInlines- flag
http://blog.llvm.org/2018/11/30-faster-windows-builds-with-clang-cl_14.html [blog.llvm.org]
2018-11-15 04:23
tags:
compiler
cxx
perf
update
This is very similar to the -fvisibility-inlines-hidden Clang and GCC flag used on non-Windows. For C++ projects with many inline functions, it can significantly reduce the set of exported functions, and thereby the symbol table and file size of the shared object or dynamic library, as well as program load time.
DragonFFI: FFI/JIT for the C language using Clang/LLVM
http://blog.llvm.org/2018/03/dragonffi-ffijit-for-c-language-using.html [blog.llvm.org]
2018-03-28 19:05
tags:
beta
c
compiler
jit
library
programming
This blog post presents related works, their drawbacks, then how Clang/LLVM is used to circumvent these drawbacks, the inner working of DragonFFI and further ideas. The code of the project is available on GitHub:
https://github.com/aguinet/dragonffi.
Improving Link Time on Windows with clang-cl and lld
http://blog.llvm.org/2018/01/improving-link-time-on-windows-with.html [blog.llvm.org]
2018-01-09 21:30
tags:
benchmark
compiler
development
perf
programming
release
windows
In this blog post, we’ll first go over some technical background about CodeView so that we can understand the problem, followed by a summary of existing attempts to speed up type merging. Finally, we’ll describe a novel extension to the PE/COFF file format which speeds up linking by offloading part of the work required to de-duplicate types to the compiler and using a new algorithm which uniquely identifies type records even across input files, and discuss the various tradeoffs of each approach. Finally, we’ll present some benchmarks and discuss how you can try this out in clang-cl and lld today.
LLVM on Windows now supports PDB Debug Info
http://blog.llvm.org/2017/08/llvm-on-windows-now-supports-pdb-debug.html [blog.llvm.org]
2017-08-19 22:26
tags:
compiler
update
windows
If you’re using clang on Windows, you can now get PDB debug information!
Devirtualization in LLVM and Clang
http://blog.llvm.org/2017/03/devirtualization-in-llvm-and-clang.html [blog.llvm.org]
2017-03-11 02:28
tags:
compiler
cxx
perf
programming
This blogpost will show how C++ devirtualization is performed in current (4.0) clang and LLVM and also ongoing work on -fstrict-vtable-pointers features.