Nicheloom visits: 58,069 all-time · 7,637 in the last 7 days

The opportunity tracker for new startups.

Today: 1,953 launches · Niche of the day: specialized calculation tools · See what launched today →

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

Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.

Want to reach these readers? Sponsor an issue.

Repo: https://github.com/valdanylchuk/xcc700Hi 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 projectSample output from esp32: xcc700.elf xcc700.c -o /d/cc.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 << My best hope is that some fork might grow into a unique nice language tailored to the esp32 platform. I think it is underrated in userland hobby projects.

HN · launched Dec 26, 2025 · 154 upvotes (top 7%) · 0 views

Niche: programming language compilers · 77 launches, 2 in the last 7 days ▼ -60% · Explore this niche →

Category and tags

  • Horizontal
  • Dev tools
  • Developer
  • Not AI
  • Hobby / open-source project

Visit website ↗ Source listing ↗

Could you build this?

No Writing a self-hosting C compiler targeting the proprietary Xtensa architecture and emitting valid relocatable ELF binaries requires deep expertise in systems architecture and ABI specifications.

What it would actually take: Requires implementing a recursive descent parser, register allocator, and machine code emitter conforming directly to the Tensilica Xtensa instruction set and ESP-IDF calling conventions. The extreme challenge lies in achieving true self-hosting within tight line constraints while correctly generating low-level ELF object headers and relocations. Needs specialized expertise in compiler backends and embedded microcontroller architectures.

Discussion

20 comments analyzed.

Competitors mentioned: Go, Rust (borrow checker), C++, Managed languages, Zephyr RTOS

Concerns raised: C security exploits in standard library (strings, arrays) remain unfixed since 1979, WG14 lacks interest in security improvements despite charter goals, Compiler vendors underfunded and not sufficiently engaged in ISO efforts, ISO standardization process unable to achieve stated security goals, Moving away from C toward more complexity harms IT security and sovereignty

Feature requests: C language with borrow checker and Result/Option types, Improve expression evaluation precision in C standard, Better side-effect representation in AST for initializers, Execute-in-place (XIP) support preservation when loading ELFs

Competitors

Other products that read as similar to this one : 477 launches clear the similarity bar, closest 8 shown.

Attention rank: #32 of 478 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).

Launched 58 days after the earliest competitor.

The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.