this post was submitted on 02 Jul 2023
13 points (100.0% liked)
C Programming Language
993 readers
1 users here now
Welcome to the C community!
C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.
- irc: #c
🌐 https://en.cppreference.com/w/c
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I developed half-assed a NASM wrapper (or transpiler if u will) while ago, It basically just adds some high-level feature like simple condition statements directly against registers, for example:
if (rax == 12)
Then generates appropriate NASM code. Simple really. Most error checkings are done my NASM lol so I dont need to worry much about the prefixes or instruction-operand correctness. I took most of the grammar for the expression from here. I privatized the repo because it is crazy how dirty it is I am ashamed of myself. If anyone wanna do it again, I'm up tho. But i dont wanna use my old code, just code again from start.
U might be thinking "lol that just C 2.0", no it was not, it is not that advanced lmao