Skip to content

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

4 pointsjsomedon1 comment
On HN

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?

Comments

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.