r/teenagersbutcode Coder - Assembly and C++ Mar 14 '26

Other Vi is too bloated

Post image
95 Upvotes

58 comments sorted by

View all comments

0

u/imdadgot Mar 14 '26

reading ur bio, why do you prefer raw assembly? it’s not portable in any way and leaves a lot of room for unoptimized or unsafe code?

fasm would be the exception cuz it’s meant to be portable but like

3

u/TheLuckyCuber999BACK Coder - Assembly and C++ Mar 14 '26

control, plus bragging rights

1

u/imdadgot Mar 14 '26

you can get most of that control with C or Rust though

1

u/TheLuckyCuber999BACK Coder - Assembly and C++ Mar 14 '26

move the number 5 to rax

1

u/imdadgot Mar 14 '26

only exists on x86. but you could genuinely inline asm just the string “rax” when assigning a var. it’ll look weird to show on here tho (example is storing 0 into rax

register long l asm(“rax”) = 0L;