Hacker News new | past | comments | ask | show | jobs | submit login

I experimented with using TCC as an experimental native code compilation backend for a scripting language. Was pretty impressed how easy it was to embed compared to some other solutions I tried.



Interesting, did your scripting language compile to C first? I'd be interested to see how you integrated TCC if it's available.


Check my other post: I've recently made a Atmel AVR translator to C and JIT compile it with libtcc. It's actually pretty trivial!

https://github.com/buserror/simavr/tree/jit-wip


The language had a fairly basic AST, was fairly C-Like, and used fairly basic programming constructs (e.g. at most functions are just a call into a dispatcher) so it translates reasonably well to C. Didn't pursue the project too far, so not really anything concrete to show.

@buserror's project sounds like a better example with code.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: