52

Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64 UEFI

 5 years ago
source link: https://www.tuicool.com/articles/hit/67NZvqz
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

uefi-jitfuck

A JIT (Just-In-Time) compiler for Brainfuck programming language running solely on x86_64 UEFI (Universal Extensible Firmware Interface).

qMzUZfU.png!web

The Lost Kingdom by Jon Ripley - over 2-megabyte adventure text game running inside UEFI Shell with uefi-jitfuck .

Building

Requirements

  • C Compiler, e.g. GCC as well as linker (ld)
  • GNU Make
  • GNU-EFI

Compiling

Just execute:

$ make

in the project root directory. This will create bin/ directory with uefijitfuck.efi executable inside - this is the binary you want to run.

Usage

First, build the project or grab the executable from the Releases page and put it on your ESP (EFI System Partition) along with the programs you want to run. Then, there are several options:

efibootmgr

If you don't want to run this on your UEFI directly, you can also use OVMF (UEFI firmware for QEMU/KVM).

The application requires one argument: the name of the file containing the Brainfuck program you want to run.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK