Added samples section

This commit is contained in:
Rafał Grodziński
2025-08-12 18:26:10 +09:00
parent 5b9b8a9925
commit cdc081d956

View File

@@ -36,4 +36,15 @@ main fun -> u32
## But why?
The idea was to build the whole computing environment from scratch which can be its own thing. Many project of this kind try to be sort of recoding of C/Unix, but this is not the point in the case. This project doesn't aim at compatibility so it may hapilly break things in order to make things simpler, more modern, or just different.
It's mostly a learning opportunity and a bit of fun, but maybe you can find some bits of interesting knowledge for your own project.
It's mostly a learning opportunity and a bit of fun, but maybe you can find some bits of interesting knowledge for your own project.
## Samples
[Hello World](samples/hello.brc)
[Fibonaci Numbers](samples/fib.brc)
#### How to build the samples
```
brb samples/hello.brc
cc -o hello hello.o
```