11 releases
0.11.4 | Jul 5, 2023 |
---|---|
0.11.3 | Mar 26, 2023 |
0.11.0 | Dec 1, 2022 |
0.11.0-beta.4 | Nov 27, 2022 |
0.1.0-beta.1 | Nov 13, 2022 |
#215 in Operating systems
1,255 downloads per month
10KB
245 lines
First Stage: Bootsector
This executable needs to fit into the 512-byte boot sector, so we need to use all kinds of tricks to keep the size down.
Build Commands
cargo build --release -Zbuild-std=core --target x86-16bit.json -Zbuild-std-features=compiler-builtins-mem
- `objcopy -I elf32-i386 -O binary target/x86-16bit/release/first_stage target/disk_image.bin
To run in QEMU:
qemu-system-x86_64 -drive format=raw,file=target/disk_image.bin
To print the contents of the ELF file, e.g. for trying to bring the size down:
objdump -xsdS -M i8086,intel target/x86-16bit/release/first_stage