Xcc700

Languages and libraries

c compiler

SHOW HN2025

Xcc700

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

github.com

#c compiler#esp32#xtensa#self-hosting compiler#elf

154points
36comments
#474of 3,837 in 2025
Top 13%of 2025 by points

How HN took it

LovedMost comments that take a side are positive

4 positive, 3 neutral or asking, 0 mixed, 0 critical, out of 7 comments about the project. Thread score +0.35.

Idea: 3 for, 0 againstExecution: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Easy to read and well written code because it supports only basic features

    From 1 comment
    • hats off. this is really easy to read and well written and easy to comprehend code imho because it only support basic features. its a really nice example to read through thanks.…
      saidnooneever on HN
  • Nice to see different approaches to the same problem

    From 1 comment
    • Cool, always refreshing to see different approaches to the same problem, and you learn so much by doing, this is more the kind of tinkering I will be doing in retirement.
      boznz on HN

Objections

  • Rust is too complex to achieve this on a small device

    From 1 comment
    • That's super cool! I have been wondering what could be done with ESP32 if it weren't for the lack of RAM. As a fun of Rust, one thing that saddens me is knowing these things…
      ladyanita22 on HN

Requests

  • Port to RISC-V

    From 1 comment
    • Yeah, very cool. I was thinking about possibly porting it to risc-v and using it on my fpga based core. I was trying to build a monitor style shell, but C like environment would…
      MobiusHorizons on HN

Questions

  • Can it run ELF programs from a memory card?

    From 1 comment
    • Can this run ELF programs that are placed on the memory card?
      nunobrito on HN
  • What shell is used in the demo video?

    From 1 comment

Alternatives named

  • TCC (Tiny C Compiler)

    From 1 comment
    • There is the TCC. Adapting that would probably be a faster path to a full featured C compiler on esp32 than building up my xcc700. This is more of an educational sandbox project.
      isitcontent on HN
  • chibicc, kefir, sectorc

    From 2 comments
    • I know, and there are chibicc, kefir, etc. .. and I have my own experimental C compiler.
      uecker on HN
    • This one[1] is similar in style and supports a bit more C constructs. [1] https://github.com/Lulzx/sectorc/blob/master/stage5/cc.c
      fuhsnn on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/46392736)