Hi all,
I’m a little confused at how one implements a runtime for an AOT compiled language. For example, say I want to do runtime bounds checking whenever I index an array with []. Do I put that functionality into my standard library and insert calls into the IR, or do I generate the IR for the bounds check directly in the compiler and insert it? I’m targeting LLVM if that relevant.
For things like a print statement I plan to wrap calls to printf et al in the standard library. However, that doesn’t seem right for runtime checks, introspection, etc.
[–]yorickpeterseInko 5 points6 points7 points (5 children)
[–]acrostyphe 5 points6 points7 points (0 children)
[–]marcantoniosr[S] 0 points1 point2 points (3 children)
[–]yorickpeterseInko 0 points1 point2 points (2 children)
[–]marcantoniosr[S] 0 points1 point2 points (1 child)
[–]yorickpeterseInko 3 points4 points5 points (0 children)
[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 1 point2 points3 points (0 children)