diff --git a/README.md b/README.md index 8d01704d8..11416c9c9 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ C3 tries to be an alternative in the C/C++ niche: fast and close to the metal. ### Example code +Create a `main.c3` file with: ```c++ module hello_world; import std::io; @@ -27,6 +28,15 @@ func void main() } ``` +Make sure you have the standard libraries at either `../lib/std/` or `/lib/std/`. + +Then run +```sh +c3c compile main.c3 +``` + +The generated binary will be called `a.out`. + ### In what ways do C3 differ from C? - No mandatory header files