Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/not-nik/llvm-kernel
A hello world kernel, written in LLVM IR
https://github.com/not-nik/llvm-kernel
hello-world kernel llvm llvm-ir
Last synced: 6 days ago
JSON representation
A hello world kernel, written in LLVM IR
- Host: GitHub
- URL: https://github.com/not-nik/llvm-kernel
- Owner: Not-Nik
- License: mit
- Created: 2020-03-05T00:55:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T00:56:03.000Z (almost 5 years ago)
- Last Synced: 2025-01-26T15:37:43.572Z (7 days ago)
- Topics: hello-world, kernel, llvm, llvm-ir
- Language: LLVM
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LLVM-kernel
A hello world kernel, written in LLVM IR## Why
This kernel was inspired by an [article by Marek](https://idea.popcount.org/2013-07-24-ir-is-better-than-assembly/).
LLVM ir is a powerful tool for cross platform programming. It is more low-level than C, while still being easier than assembly languages such as NASM.
It features basic variable and function support that make programming easier. Also I wanted to have some fun.## How to build
You'll need `llvm` (duh) and `make` as well as a i386 `gcc` and `ld`. Those last two are named `x86_64-elf-gcc/ld` in the Makefile, but you should change that
if yours are named differently (e.g. `i386-elf-gcc/ld`).
To test your build you'll need `qemu` i.e. `qemu-system-i386`