Use a.out as default output binary

Better document how to build example in README.md
This commit is contained in:
gdm85
2021-06-27 22:51:09 +02:00
committed by Christoffer Lerno
parent cf8c87c122
commit 776377dfa2

View File

@@ -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