roc/examples/hello-world/platform
2020-10-04 16:34:56 -04:00
..
host Update hello-world host 2020-10-04 16:34:56 -04:00
README.md Update platform README 2020-10-04 16:34:04 -04:00

Recompiling the platform from source

This example platform for "Hello, World!" includes the same host implemented in two different languages—C and Rust—to demonstrate how it's done in both. Ordinarily you'd only implement your host once, in your preferred language.

Recompiling the C implementation

$ clang -c host.c -o host.o 

Then mv the compiled host.o into the apropriate subdirectory under host/ based on the operating system you've compiled it for.

Recompiling the Rust implementation

$ rustc