2026-02-14 02:08:04 +00:00
2026-01-26 21:37:49 -05:00
2026-02-02 12:56:35 -05:00
2026-02-13 20:02:36 -05:00
2026-01-31 21:34:56 -05:00
2026-01-25 20:58:36 -05:00
2026-01-29 09:56:27 -05:00
2026-02-14 02:08:04 +00:00
2026-02-13 20:02:36 -05:00


rxcc logo

rxcc - Rochester X C Compiler

An x86 C compiler written in Swift.


Overview

Have you ever woken up one day and said to yourself, "Y'know what? I'd really like to build a compiler today."?

Could be just me.

Well, ever since that fateful day, I've been chiseling away at this mammoth task, adding functionality in stages by following this series.

Features

Note

This project is under active development, and the implemented features are rapidly changing.

Here is a list of the currently implemented C language features:

  • Unary Operators: The ~ (bitwise compliment), - (negation), and ! (logical negation) operators are implemented for integers, and can be applied to any term.
  • Arithmetic Operators: The + (addition), - (subtraction), * (multiplication), and / (division) operators are implemented for integers, parsed according to their precedence levels in C.
  • Bitwise Operators: The & (bitwise AND), | (bitwise OR), and ^ (bitwise XOR) operators are implemented for integers, each with their own precedence levels.
  • Functions: Each file currently supports exactly one function (so you'd be wise to make it "main"), with exactly one statement: an integer return statement. So yeah, not so useful yet.
  • Variables: Local, integer variables are supported, and can be declared (optionally initialized) and assigned to.
  • Compound Assignment: Each binary operator has its corresponding compound assignment operator implemented. Now you can have fun using your bitwise-shift-right-equals (>>=) operator.
Description
No description provided
Readme 276 KiB
Languages
Swift 77.9%
C 16.3%
Shell 5.6%
Makefile 0.2%