rcc4r

Crates.iorcc4r
lib.rsrcc4r
version0.1.0
sourcesrc
created_at2020-08-16 07:10:40.857466
updated_at2020-08-16 07:10:40.857466
descriptionC compiler implemented in Rust with only 4 raw-functions
homepage
repository
max_upload_size
id277156
size54,115
Ngo Iok Ui (Wu Yu Wei) (wusyong)

documentation

README

RCC4r (R-C-Car)

RCC4r is a Rust impl. of toy C Compiler with only 4 Raw functions.

Introduction

Rumble Rumble ๐Ÿคฃ๐Ÿคฃ Put the pedal to the metal ๐Ÿ˜๐Ÿ˜๐Ÿ˜ Sick move ๐Ÿ˜Ž๐Ÿ˜Ž๐Ÿ˜Ž Start the engine ๐Ÿ”‘๐Ÿ”‘๐Ÿ”‘ Start the engine +๐Ÿš—+๐Ÿ‘‰+๐Ÿš—

Let LLVM ๐Ÿ’จ๐Ÿ’จ optimize the code for me ๐Ÿ‘ฉ๐Ÿฆฒ๐Ÿง” I am ๐ŸŒ™๐ŸŒ™ the best ๐Ÿ˜Ž developer literally ๐Ÿค“๐Ÿค“ Make ๐Ÿ˜ฏ people who saw thought it's a dream ๐Ÿ˜ฑ๐Ÿ˜ฑ Haven't woke up ๐Ÿ˜ด๐Ÿ˜ด Programs already complete ๐Ÿ‘ป๐Ÿ‘ป Rust ๐Ÿ’จ๐Ÿ’จ checks memor) safety for me ๐Ÿ˜ฒ๐Ÿ˜ฒ I am the most ๐Ÿค™๐Ÿค™ efficient engineer literally ๐Ÿ˜ต๐Ÿ˜ต Make ๐Ÿ˜จ๐Ÿ˜จ people who saw want to believe ๐Ÿ˜ญ๐Ÿ˜ญ 0โƒฃ to ๐Ÿ’ฏK only 4โƒฃ functions๐Ÿ˜๐Ÿ˜

Mutable Unmutable ๐Ÿšฅ๐Ÿšฅ could choose only one๐Ÿšถโ™€๐Ÿšถโ™€ Quick compile slow compile ๐Ÿ˜ˆ๐Ÿ˜ˆ Fast and safe no matter what ๐Ÿ’ช๐Ÿ’ช It's not ๐Ÿš—๐Ÿš— like writting C ๐Ÿ๐Ÿ Don't afraid it'll crash ๐Ÿ‘ฒ๐Ÿ‘ฒ Just scare rustc ๐Ÿ‘ฎโ™‚๐Ÿ‘ฎโ™‚ *Beep Beep Beep* doesn't let me pass ๐Ÿ˜ฉ๐Ÿ˜ฉ *Beep Beep Beep Beep Beep* Override nightly ๐Ÿ˜๐Ÿ˜ *Beep Beep Beep Beep Beep* Fearless concurrency ๐Ÿ˜Ž๐Ÿ˜Ž *Beep Beep Beep Beep Beep* Unsafe secretly ๐Ÿคซ๐Ÿคซ *Beep Beep Beep Beep Beep* Unwrap everything ๐Ÿคช๐Ÿคช

Side Note

This is an attempt to present a minimum C compiler in Rust. While my original intention is to make it completely safe but I just don't really have that much time for now. So here's the one which manipulates pointers like good old fashion way. Maybe one day I will manage to refactor it.

Reference

RCC4r is based on reference of C4

Commit count: 0

cargo fmt