Settings

Theme

Ask HN: Fun and exotic things you've done using LLVM?

4 points by jsomedon 6 years ago · 1 comment · 1 min read


I was reading this post about LLVM(https://www.cs.cornell.edu/~asampson/blog/llvm.html) and I found it's amazing that LLVM can do lots of things other than just building compiler with it. So I thought maybe you folks here on HN have done some fun things with LLVM too and could talk about it?

fundamental 6 years ago

I've used LLVM for some light callgraph analysis to identify when hazardous functions can be called from a 'safe' function. The main application is for realtime audio processing where dynamic memory allocation, IO, and blocking locks can introduce bugs (due to their latency characteristics). Nothing all that fancy, though reconstructing class hierarchies, vtables, templates, etc was a learning curve.

repo: https://github.com/fundamental/stoat

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection