#include "cell.hh" void mc_cores_main() { kernel::init_sys(); bjk_slog2("HELLO_WORLD\n"); kernel::finish_sys(); }
This program just uses the debug function that writes to the log to see that it has runned.
Three functions are minimally needed to use the library:
kernel::init_sys
kernel::finish_sys
kernel::run_sys
(see other examples).
The files:
messaging-cells/src/tests/main.mk
messaging-cells/src/tests/nil_host/nil_host.mk
messaging-cells/src/tests/hello_world/hello_world.mk
are the ones needed to generate the files:
messaging-cells/src/tests/bin/nil-host.elf
messaging-cells/src/tests/bin/hello_world.elf
that get called by messaging-cells/hello_world.sh
Just call messaging-cells/hello_world.sh
The output will be written to the logs in:
messaging-cells/src/tests/bin/log_*
files.
One per core.