Making your JITted Code known: Let me count the ways (wakelift.de)

by lizmat 1 comments 9 points
Read article View on HN

1 comment

[−] kgeist 63d ago
I had it the other way around when writing a JIT compiler for my toy language: it worked on Windows, but crashed on Linux. The compiler was written in C++ and used C++ exceptions. On Windows (MinGW), I enabled the LJSJ backend (longjmp/setjmp), which happily skipped JIT-generates frames, but on Linux, it immediately crashed after encountering the first JIT-generated frame. I didn't find a way to quickly fix it and abandoned the project.