From 776377dfa2dfc5181eda6d7a136bf747c097171c Mon Sep 17 00:00:00 2001 From: gdm85 Date: Sun, 27 Jun 2021 22:51:09 +0200 Subject: [PATCH] Use a.out as default output binary Better document how to build example in README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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