Research: Can cproc replace gcc? #11

Open
opened 2026-11-03 00:16:32 +00:00 by ahill · 0 comments
Owner

In an attempt to make the system even lighter, would it make sense to replace GCC with cproc/qbe? It's a promising compiler/backend that would significantly reduce the code size, at the cost of losing features such as inline assembly and long double just to name a couple things. Projects like Oasis can get away with patching code, but patches themselves are code that has to be maintained. How much of Maple Linux can be built with cproc, and what patches are necessary to build the software that can't?

In an attempt to make the system even lighter, would it make sense to replace [GCC](https://gcc.gnu.org/) with [cproc](https://sr.ht/~mcf/cproc/)/[qbe](https://c9x.me/compile/)? It's a promising compiler/backend that would significantly reduce the code size, at the cost of losing features such as [inline assembly](https://todo.sr.ht/~mcf/cproc/5) and [long double](https://todo.sr.ht/~mcf/cproc/3) just to name a couple things. Projects like Oasis can get away with patching code, but patches themselves are code that has to be maintained. How much of Maple Linux can be built with cproc, and what patches are necessary to build the software that can't?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ahill/maplelinux#11
No description provided.