TGViewer
OpenBSD OpenBSD @openbsd · 1.23K subscribers
Post #409 2.37K
Analysis of Speedup Gain of Undefined Behavior Optimizations in OpenBSD.

The ISO C Standard added the undefined behavior notion as a mean to portability. State-of-the-art compilers such as GCC and Clang/LLVM use it to issue aggressive optimizations that break the the intention of the progammer. We argue that the performance impact of undefined behavior (UB) optimizations in operating systems, such as OpenBSD, is low. Furthermore they introduce unobservable and undocumented effects that have great impact of program robustness and security. To test our hypothesis we take the compiler implementation used in OpenBSD, i.e.Clang/LLVM, and disable all undefined behavior optimizations.Then we compare the performance of the system on multiple hardware architectures with the above mentioned optimizations turned on and off...

https://tildegit.org/lucic71/dissertation/src/branch/master/TSW/tsw.pdf

#system #optimizations
  • 👏 9
  • 👍 4
  • 🥰 4
  • ❤ 2
More from @openbsd
  1. Oct 22, 2025OpenBSD 7.8 released. #release
  2. Oct 22, 2025Channel photo updated
  3. Sep 14, 2025How to perform common FreeBSD tasks on OpenBSD. This post will serve as reminder for mysel…
  4. Sep 14, 2025Adventures in porting a Wayland Compositor to NetBSD and OpenBSD. #video #wayland
  5. Apr 28, 2025OpenBSD 7.7 released! #release
  6. Apr 28, 2025Channel photo updated
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →