Skip to content

kkebo/swift_os

Repository files navigation

swift_os

An operating system written in Swift.

Prerequisites

  • Make
    • Arch Linux: sudo pacman -S make
    • Fedora 40: sudo dnf install make
    • Ubuntu 22.04: sudo apt install make
    • Debian 12: sudo apt install make
    • macOS 14: bulit-in (/usr/bin/make)
  • llvm-objcopy
    • Arch Linux: sudo pacman -S llvm
    • Fedora 40: sudo dnf install llvm
    • Ubuntu 22.04: sudo apt install llvm
    • Debian 12: sudo apt install llvm
    • macOS 14: brew install llvm and add /opt/homebrew/opt/llvm/bin to your $PATH
  • QEMU 9.0 or later
    • Arch Linux: sudo pacman -S qemu-system-aarch64
    • Fedora Rawhide: sudo dnf install qemu-system-aarch64-core
    • Fedora 40: Build from source
    • Ubuntu 22.04: sudo apt install qemu-system-arm Build from source
    • Debian 12: Build from source
    • macOS 14: brew install qemu
  • Swift (main snapshot)
    • On Linux, you can easily install the toolchain using swiftly.

      curl -L https://swiftlang.github.io/swiftly/swiftly-install.sh | bash
      swiftly install main-snapshot

Building

make

Cleaning build outputs

make clean

Running on QEMU

make run