mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Use a.out as default output binary
Better document how to build example in README.md
This commit is contained in:
10
README.md
10
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
|
||||
|
||||
Reference in New Issue
Block a user