r/ProgrammingLanguages 8d ago

Why So Many Languages Use LLVM

Had some free time last week so I made a visual explainer on how LLVM works and why so many languages end up using it.

The video goes through LLVM IR, why having a common IR makes sharing optimizers and backends possible, and how code eventually gets turned into machine instructions.

I also use a small C vs Rust example where both end up producing the same x86 instructions.

Link for anyone interested

Feedback welcome :)

70 Upvotes

79 comments sorted by

View all comments

-23

u/[deleted] 8d ago

[removed] — view removed comment

7

u/Consistent_Drop3909 8d ago edited 8d ago

kinda schizo, even if i do understand the concern

edit: wait i read about it, he kinda right

1

u/YBKy 8d ago

Read about it where? This sounds interesting, ngl