7834
This commit is contained in:
parent
5f8d065d5d
commit
cfeb71c898
|
@ -92,13 +92,14 @@ Mu programs can be written for two very different environments:
|
||||||
no persistent storage, no network. These programs have not yet been tested
|
no persistent storage, no network. These programs have not yet been tested
|
||||||
on native hardware, only on on Qemu and Bochs. But these _baremetal_
|
on native hardware, only on on Qemu and Bochs. But these _baremetal_
|
||||||
programs build from scratch, without any reliance on C. This is the future.
|
programs build from scratch, without any reliance on C. This is the future.
|
||||||
|
Here is Conway's Game of Life on Mu:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ ./translate_mu_baremetal baremetal/ex2.mu # emit disk.img
|
$ ./translate_mu_baremetal baremetal/life.mu # emit disk.img
|
||||||
$ qemu-system-i386 disk.img
|
$ qemu-system-i386 disk.img
|
||||||
```
|
```
|
||||||
|
|
||||||
<img alt='screenshot of a Mu program running without any intervening Operating System' src='html/baremetal.png'>
|
<img alt='screenshot of Game of Life running on Mu without any intervening Operating System' src='html/baremetal-life.png'>
|
||||||
|
|
||||||
Use `translate_mu` to build programs for Linux, and `translate_mu_baremetal`
|
Use `translate_mu` to build programs for Linux, and `translate_mu_baremetal`
|
||||||
for running without Linux. The standard libraries are totally separate for the
|
for running without Linux. The standard libraries are totally separate for the
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 248 KiB |
Binary file not shown.
Before Width: | Height: | Size: 61 KiB |
Loading…
Reference in New Issue