Expand description
Helper library for maelstrom-worker.
This code is run in the child process after the call to clone. In this environment, since the
cloning process is multi-threaded, there is very little that we can do safely. In particular,
we can’t allocate from the heap. This library is separate so we can make it no_std and manage
its dependencies carefully.
Structs§
Enums§
- Syscall
- A syscall to call. This should be part of slice, which we refer to as a script. Some variants
deal with a value. This is a
usizelocal variable that can be written to and read from.
Functions§
- start_
and_ exec_ in_ child - Run the provided syscall script in
syscalls. - start_
and_ exec_ in_ child_ trampoline