<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe" -->

---
title: A C++ toolchain from 357 bytes, in Bazel | daily.dev
description: A Bazel C++ toolchain has been built whose entire ancestry traces back to the 357-byte stage0 seed program. Starting from that minimal hex seed, the toolchain...
canonical: https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A C++ toolchain from 357 bytes, in Bazel | daily.dev
og:description: A Bazel C++ toolchain has been built whose entire ancestry traces back to the 357-byte stage0 seed program. Starting from that minimal hex seed, the toolchain...
og:url: https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe
og:image: https://api.daily.dev/og/posts/HVeXFAlOE.png
og:image:alt: A C++ toolchain from 357 bytes, in Bazel
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A C++ toolchain from 357 bytes, in Bazel

**[Farid Zakaria’s Blog](https://daily.dev/sources/fzakaria)** · 4 min read · 0 upvotes · 0 comments

## Summary

A Bazel C++ toolchain has been built whose entire ancestry traces back to the 357-byte stage0 seed program. Starting from that minimal hex seed, the toolchain bootstraps all the way up to a working C++ compiler, enabling hermetic builds without relying on any prebuilt binaries. The toolchain successfully compiles Abseil and GoogleTest from the Bazel Central Registry without patches, passing all 236 tests. An audit report using Bazel aspects verifies that every build action uses only programs built within the repository, with only two audited seed binaries as exceptions (the hex0 seed itself and the system shell). This approach mirrors what Guix and NixOS have done to minimize binary seeds and improve build reproducibility.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://fzakaria.com/2026/08/01/a-c++-toolchain-from-357-bytes-in-bazel>

## Similar posts on daily.dev

- [Build better software to build software better](https://daily.dev/posts/build-better-software-to-build-software-better-kopbq9xdt) · Slack engineering · 67 upvotes · 3 comments
- [Tech Notes: The smallest build system](https://daily.dev/posts/tech-notes-the-smallest-build-system-ru2fjysp4) · Lobsters · 0 upvotes · 0 comments

---

Tags: [#c++](https://daily.dev/tags/c++), [#bazel](https://daily.dev/tags/bazel)

[View this post on daily.dev](https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A C++ toolchain from 357 bytes, in Bazel","url":"https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe"},"datePublished":"2026-08-01T21:47:26.850Z","dateModified":"2026-08-01T21:59:09.782Z","description":"A Bazel C++ toolchain has been built whose entire ancestry traces back to the 357-byte stage0 seed program. Starting from that minimal hex seed, the toolchain...","image":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","thumbnailUrl":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","isAccessibleForFree":true,"articleSection":"Farid Zakaria’s Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Farid Zakaria’s Blog","logo":"https://media.daily.dev/image/upload/s--YqqvRt90--/f_auto/v1723789280/logos/fzakaria","url":"https://daily.dev/sources/fzakaria"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"c++,bazel","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Farid Zakaria’s Blog","item":"https://daily.dev/sources/fzakaria"},{"@type":"ListItem","position":3,"name":"A C++ toolchain from 357 bytes, in Bazel"}]}
```

