11 ms·
Super cool! Any idea how big the runtime is? Is it easy to run a libc free version? I honestly feel like the embedded/firmware slice of the stack desperately
by aey 6y ago
Super cool! Any idea how big the runtime is? Is it easy to run a libc free version? I honestly feel like the embedded/firmware slice of the stack desperately needs a next gen language.
- u2zv1wx 6y agoWhat you need are the two functions `malloc` and `free` that have the following signatures: declare i8* @malloc(i64) declare void @free(i8*) So if you have implementations of them written in LLVM IR, I think that's enough. Disclaimer: I'm not very good at low-layer concepts. Correct me if I'm wrong here.
- aey 6y agoIs there a big runtime that’s linked to support all the language features? Like what is the fully statically linked size of int main(void) { return 0; } If it’s just providing free/malloc symbols, that’s wonderful!