vnmakarov / mir

A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
MIT License
2.24k stars 145 forks source link

Graceful crash handling? #408

Open RogerDavenport opened 2 weeks ago

RogerDavenport commented 2 weeks ago

I've been testing Mir out as a JIT for running IDE / GUI application development. I've successfully been able to run Vala programs with -ccode and the performance is really good. Only question I have is how I may recover and/or catch SEGV faults? Right now I just catch the signal and exit - but it would be better if I could gracefully handle the fault.

Idea I have is to use MIR to compile hot-reload Vala code by compile/link/run on changes (compile single class, relink and run).

Is it possible? And thanks for a wonderful project!