Re:GRiSP 2 – Erlang and Elixir on bare metal
by e_proxus on Tuesday March 12, 2019 @05:14AM
(#19366469)
RTEMS isn't "controlling" the execution of the code, it just supplies implementation for OS-specific utilities (effectively the POSIX API). The BEAM VM code is compiled to machine code and runs directly on the CPU. As peerst explained, if you write your own C code in an Erlang port driver for example, you don't have to use RTEMS at all.
[ Parent
| on HN ]
Re:GRiSP 2 – Erlang and Elixir on bare metal
by anonymousDan on Tuesday March 12, 2019 @07:07AM
(#19366975)
Is there the ability to run multiple OS processes or is the BEAM VM the only thing running after boot?
Re:GRiSP 2 – Erlang and Elixir on bare metal
by e_proxus on Tuesday March 12, 2019 @10:49AM
(#19368653)
You can only run one process in RTEMS (hence the name The Real-Time Executive for Multiprocessor Systems), however you can simulate other processes via threads. This is how we run the network stack and Wi-Fi configuration tools among other things.