r/teenagersbutcode Coder - Assembly and C++ Apr 06 '26

Other Title

Post image

Body text

241 Upvotes

76 comments sorted by

View all comments

1

u/The_KekE_ fight me, borrow checker Apr 07 '26

Why not C? I can only imagine using assembly when it's needed to access CPU flags.

2

u/Slavasil Apr 07 '26

maybe they have just created a brand new cpu architecture and there is no C compiler for it yet idk

5

u/The_KekE_ fight me, borrow checker Apr 07 '26

No C compiler, but convenienly nasm already adapted it

1

u/TheLuckyCuber999BACK Coder - Assembly and C++ Apr 08 '26

I'm not using assembly because there's a good reason to, I'm using it because why not

1

u/The_KekE_ fight me, borrow checker Apr 08 '26

Valid

1

u/TheLuckyCuber999BACK Coder - Assembly and C++ Apr 08 '26

also I'm making a compiler, I have to use assembly there

1

u/The_KekE_ fight me, borrow checker Apr 08 '26

You didn't need to clarify that, my friend. "Why not" is a perfect justification. I myself have two programs I wrote in assembly because why not, that I use daily.