Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fasquoika
· 8y ago · 0 comments
You could do it with JIT compilation or self-modifying code. I'm not sure if there's a simpler way in C
Comments
[–]
3b9cd7355317f55
8y ago
You can exec a C compiler and use dlopen on the generated object file, or use libtcc[1].
https://www.bellard.org/tcc/