2 ms·
Ironically, the bootloader is still assembly with C++. Then again, maybe that is not the interesting thing to do in OCaml.
by oneplane 8y ago
Ironically, the bootloader is still assembly with C++. Then again, maybe that is not the interesting thing to do in OCaml.
- wtetzner 8y agoI'm not sure that's ironic. I believe the OCaml runtime is written in C as well.
- pjmlp 8y agoMany times that is a matter of convenience, other than trying to prove a point doing a full bootstrap.
- sl33k- 8y agoMalte here, I developed the bootcode. While I agree with you, it's about the minimum you can do in C/ASM land before starting up OCaml. The bootcode just initializes the registers to zero, setups a trap handler and the stack and heap. This is impossible to do from OCaml as it does not allow direct register/memory access as a language feature.