|
@@ -32,7 +32,7 @@ You should use Linux to compile `asmc`, although some parts of it can
|
|
|
also be built on macOS. If you use Debian, install the prerequisites
|
|
|
with
|
|
|
|
|
|
- sudo apt-get install build-essential nasm qemu-system-x86 python3 gcc-multilib
|
|
|
+ sudo apt-get install build-essential nasm qemu-system-x86 python3 qemu-utils
|
|
|
|
|
|
If you cloned the GIT repository, you will probably want to checkout
|
|
|
the submodules as well:
|
|
@@ -42,15 +42,13 @@ the submodules as well:
|
|
|
|
|
|
Then just call `make` in the toplevel directory of the repository. A
|
|
|
subdirectory named `build` will be created, with all compilation
|
|
|
-artifacts inside it. In particular `build/boot_asmg.x86` is a bootable
|
|
|
-disk image, which you can run with QEMU:
|
|
|
+artifacts inside it. In particular `build/boot_asmg.x86.qcow2` is a
|
|
|
+bootable disk image, which you can run with QEMU:
|
|
|
|
|
|
- qemu-system-i386 -m 256M -hda build/boot_asmg.x86 -serial stdio -device isa-debug-exit -display none
|
|
|
+ qemu-system-i386 -m 256M -hda build/boot_asmg.x86.qcow2 -serial stdio -device isa-debug-exit -display none
|
|
|
|
|
|
-(if your host system supports it, you can add `-enable-kvm -cpu host`
|
|
|
-to benefit of KVM acceleration; `-cpu host` is currently required
|
|
|
-because `asmc` currently tries to use hardware performance counters,
|
|
|
-but at some point this will be fixed)
|
|
|
+(if your host system supports it, you can add `-enable-kvm` to benefit
|
|
|
+of KVM acceleration)
|
|
|
|
|
|
Unless I have broken something, this should run a little operating
|
|
|
system that compiles a little C compiler, and later uses such compiler
|