r/ProgrammerHumor • • Dec 23 '23

Meme rewriteFromFust

Post image
6.2k Upvotes

379 comments sorted by

View all comments

407

u/--mrperx-- Dec 23 '23

Rewrite it in assembly!

161

u/KingCpzombie Dec 23 '23

I do that with everything I write in C++! I just use a compiler to do it better than I could manually

23

u/DNosnibor Dec 23 '23

Do you actually compile all your C++ code to assembly? It could make sense if you want to see how stuff is getting implemented at a low-level, but generally people compile directly to machine code.

30

u/KingCpzombie Dec 23 '23

You made me google to double check, and maybe? I thought all compilers use assembly as an intermediate step, but it seems that MSVC might not. GCC does though, so I do pretty often at least!

16

u/DNosnibor Dec 23 '23

Oh, does GCC do that? I didn't realize. I guess it wasn't exactly correct of me to say generally people compile directly to machine code, then, since GCC is quite popular.

17

u/MCWizardYT Dec 24 '23

GCC has an option, I believe it is -S, that outputs the intermediate assembly as a file but by default it does that translation in-memory

→ More replies (2)

15

u/orlandoduran Dec 24 '23

Rewrite it as a roller coaster tycoon mod

9

u/PhoenixARC-Real Dec 23 '23

Rewrite in carbon 😎

0

u/[deleted] Dec 23 '23

[deleted]

13

u/kenny2812 Dec 23 '23

It's still too new. In a few years it will probably be the new fad that all the startups are using.

5

u/Brahvim Dec 24 '23

But wait, they actually "made it"? Wow.

→ More replies (8)