OCaml interpeter on the nintendo 3DS

Continuing with my research, I have stumbled upon this thread: https://discuss.ocaml.org/t/cross-compiling-for-embedded-arm32-target-rp2040-cortex-m0/11585/2
where the users mention an arm processor (from a raspberry pi computer), but unfortunately not much code that I would be able to run was mentioned.
Does anyone have a guess on how to proceed?

After thinking more, I will need an evaluation file, which I might have to write myself and static libraries linked to this file. This evaluation file will be called from the main 3DS function to parse the string, and return an evaluation as another string, but I am still struggling with creating the static libraries.
In one very old stackoverflow post: https://stackoverflow.com/questions/9472371/cross-compiling-ocaml-apps-for-arm?rq=3 which mentions crosscompilation to ARM processor using qemu with debian, but:
A) nintendo 3ds probably does not use debian
B) the thread itself is from 12 years ago
C) unfortunately does not do the best job on how to proceed

Lastly I’ve found this thread: /questions/27061506/ocaml-for-arm-cortex-m4, which also deals with the implementation of ocaml on arm cpu. But, it counts on the program having an existing OS to function with.

I do not really want to install linux on the machine, I don’t think it would solve all that many problems. The current code that I have for the 3ds gets the input natively from the user and that’s where I would expect the output from the ocaml, but it is a bit complicated.

Is the next best path to try compiling bytecode for the 3ds?