nowfound

Dev tools · December 26, 2025

Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines

Repo: https://github.com/valdanylchuk/xcc700 Hi Everyone! I just wrote my first compiler! - single pass, recursive descent, direct emission - generates REL ELF binaries, runnable using ESP-IDF elf_loader - very basic features only, just enough for self-hosting - treats the Xtensa CPU as a stack machine for simplicity, no register allocation / window usage - compilable on Mac, probably also Linux, can cross-compile for esp32 there - wrote for fun / cyberdeck project Sample output from esp32: xcc700.elf xcc700.c -o /d/cc.elf [ xcc700 ] BUILD COMPLETED >…

Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines launched on December 26, 2025 with 154 votes, #181 of 11,628 launches that month and more than 95% of that year's launches.

Visit github.com ↗Alternativestop 2% of December 2025

In plain words

Xcc700 is a minimal C compiler written in 700 lines that runs on ESP32 microcontrollers using the Xtensa architecture. It uses single-pass recursive descent compilation to generate executable ELF binaries that work with ESP-IDF's loader, with enough features to compile itself. Built for hobbyists and embedded projects, it simplifies the Xtensa CPU as a stack machine without register allocation and runs on Mac and Linux for cross-compilation to ESP32.

written from the facts on this page · September 2026

From the sources

mini C compiler for esp32 / Xtensa. Contribute to valdanylchuk/xcc700 development by creating an account on GitHub.

./xcc700 xcc700.c -o xcc700.elf [ xcc700 ] BUILD COMPLETED > OK > IN : 700 Lines / 7977 Tokens > SYM : 69 Funcs / 91 Globals > REL : 152 Literals / 1027 Patches > MEM : 1041 B .rodata / 17120 B .bss > OUT : 27735 B .text / 33300 B ELF [ 40 ms ] >> 17500 Lines/sec << Note: that timing is from esp32-s3. Timings on Mac/POSIX will be reported 1000x slower than they are, as on esp32 ticks are millisecond, and on POSIX microsecond, but there is no adjustment here. A. Compile with gcc xcc700.c and run it on your computer as a cross-compiler. It is fairly portable, tested on Mac x86_64 and arm64. B. Compile for esp32 using xtensa-gcc or xcc700 from the option A (yes it can compile and cross-compile…from github.com

In the maker’s words, at launch

Repo: https:&#x2F;&#x2F;github.com&#x2F;valdanylchuk&#x2F;xcc700 Hi Everyone! I just wrote my first compiler! - single pass, recursive descent, direct emission - generates REL ELF binaries, runnable using ESP-IDF elf_loader - very basic features only, just enough for self-hosting - treats the Xtensa CPU as a stack…

Does a similar job

all alternatives →
  • LC
    Learn C and its lower levels interactively, in the browser2019 · ▲356

    I made a simple virtual machine that runs C in the browser.This project is made as an experiment to see if C can be learned easier if the lower level is covered in paralel. Sandbox: https:&#x2F;&#x2F;vasyop.github.io&#x2F;miniC-hosting Tutorial part 1: https:&#x2F;&#x2F;vasyop.github.io&#x2F;miniC-hosting&#x2F;?0 More info: https:&#x2F;&#x2F;github.com&#x2F;vasyop&#x2F;miniC-hosting&#x2F;blob&#x2F;master&#x2F;README.md Please support this project: https:&#x2F;&#x2F;github.com&#x2F;vasyop&#x2F;miniC-hosting&#x2F;blob&#x2F;master&#x2F;support.md

  • A work-in-progress C compiler from scratch2021 · github.com · ▲159

    Programming language that compiles into a x86 ELF executable. - riicchhaarrd/ocean

  • Lambda-8cc – An x86 C compiler written in untyped lambda calculus2022 · github.com · ▲249

    x86 C compiler written in untyped lambda calculus. Contribute to woodrush/lambda-8cc development by creating an account on GitHub.

  • How to write a tiny compiler2017 · blog.klipse.tech · ▲224

    Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.

  • How to compile C/C++ for WASM, pure Clang, no libs, no framework2022 · github.com · ▲217

    A little help for programmers, who wants to run C&#x2F;C++ code in the browser. (This is my second attempt to show it, first time I got banned bcoz of my personal page domain, I don't really understand it why is is suspicious.)

  • A (marginally) useful x86-64 ELF executable in 466 bytes2024 · github.com · ▲85

    Battery info program for x86-64 Linux laptops in 307 bytes of machine code - meribold/btry

More dev tools this month

the category →
  • /dev/null▲490

    a social network for devs

    Dev tools · 4d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 28d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 26d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 24d ago · openbot.run

  • Contribute to oosexgang/hackios-xnu-kernel development by creating an account on GitHub.

    Dev tools · 13h ago · github.com

  • Talanoa▲346

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 21d ago · talanoa.email

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, December 2025

the whole month →
  • GP

    Life & fun · Dec 2025 · dosaygo-studio.github.io

  • Hi everyone! My name's Luke and I made the original Jmail here alongside Riley Walz. We had a ton of friends collaborate on building out more of the app suite last night in lieue of DOJ's "Epstein files" release. Please AMA!

    Life & fun · Dec 2025 · jmail.world

  • Design and ship studio-grade landing pages with AI

    AI · Dec 2025 · loki.build

  • AI turns your health goals into a 7-day menu & grocery list

    AI · Dec 2025 · planeatai.com

  • Community, All the HN belong to you. This is an archive of hacker news that fits in your browser. When I made HN Made of Primes I realized I could probably do this offline sqlite&#x2F;wasm thing with the whole GBs of archive. The whole dataset. So I tried it, and this is it. Have Hacker News on your device. Go to this repo (https:&#x2F;&#x2F;github.com&#x2F;DOSAYGO-STUDIO&#x2F;HackerBook): you can download it. Big Query -> ETL -> npx serve docs - that's it. 20 years of HN arguments and beauty, can be yours forever. So they'll never die. Ever. It's the unkillable static archive of HN and it's…

    Dev tools · Dec 2025 · hackerbook.dosaygo.com

  • AI video studio for viral social clips

    AI · Dec 2025 · cybercut.ai