{"repo":"sysprog21/muxleq","free":true,"listed":false,"github":"https://github.com/sysprog21/muxleq","clone":"git clone https://github.com/sysprog21/muxleq.git","description":"32-bit two-instruction (SUBLEQ+MUX) VM that self-hosts Forth and compiles RISC-V to native code","language":"C","stars":26,"topics":["eforth","subleq","esoteric-compiler","forth","meta-compiler","risc-v","riscv32"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"MUXLEQ MUXLEQ is a minimalist esoteric machine. Its core is two instructions: the classic SUBLEQ plus a multiplexing (MUX) operation that adds single-instruction data movement and boolean logic. A small, disciplined set of native primitives is layered on top by encoding them in otherwise-unused operand values; today that is a single right-shift op. The result runs faster and in fewer cells than pure SUBLEQ, and this project ships a complete, self-hosting development environment for it. MUXLEQ is a 32-bit-cell, cell-addressed VM. With no argument it runs the self-hosting eForth image; given a FILE it loads and runs that standalone MUXLEQ image instead: ./build/muxleq image.dec . Introduction This repository contains a full toolchain for the MUXLEQ architecture: 1. An assembler for the MUXLEQ instruction set. 2. A virtual machine built upon the assembler. 3. A cross-compiler that targets the VM with a version of the eForth language. 4. rvopt , a standalone RV32I-to-MUXLEQ compiler for wide native MUXLEQ images. SUBLEQ is a Turing-complete One-Instruction Set Computer (OISC). Running a high-level language on one is a demonstration of computational minimalism, and this project is a platform for exploring how far that goes. The system is self-hosted: the eForth environment compiles new versions of itself from source, so it can be modified and extended from within. Getting Started eForth on MUXLEQ runs this same VM and this same eForth image in a browser, as an interactive tutorial","default_branch":null,"files":null,"tree":[],"storefront":"/r/sysprog21","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sysprog21/muxleq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}