News for hackers. Stuff that matters.
Re:Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (... by ValdikSS on Friday December 26, 2025 @09:21PM (#46398494)
In case anyone interested, you can run (nommu) Linux on ESP32 Xtensa boards

https://github.com/jcmvbkbc/esp32-linux-build

ESP32-S3 N16R8 is <$5 on aliexpress:

    - Dual-core Xtensa 240 MHz
    - 16 MB NOR flash (eXecute-in-place supported)
    - 8 MB (PS)RAM
    - Wi-Fi 2.4 GHz 802.11n, Bluetooth
As well as Zephyr, NuttX RTOSes, MicroPython.
Re:Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (... by artemonster on Saturday December 27, 2025 @01:24AM (#46399623)
What is your username?
Re:Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (... by no_time on Saturday December 27, 2025 @06:08AM (#46400940)
>eXecute-in-place supported

Losing this when you load ELFs is kind of a bummer. Probably a dumb question but I wonder if it'd be possible to only swap in the parts of the binary that are needed at any given time.

Re:Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (... by ValdikSS on Saturday December 27, 2025 @10:31AM (#46402542)
swap requires MMU, so no, unfortunately. But there are tricks to have XIP userspace: cramfs supports it, as well as a special AXFS file system.

cramfs parses ELF files and marks XIP only a .text/ro segments of it, not the whole file.

https://github.com/npitre/cramfs-tools/commit/2325ed2de8fd17...

Re:Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (... by actionfromafar on Saturday December 27, 2025 @08:38PM (#46407539)
Historically, Unix SVR7 and Minix had swap with no MMU. But Linux can't do it.