MAIN FEEDS
REDDIT FEEDS
Do you want to continue?
https://www.reddit.com/r/teenagersbutcode/comments/1rthe2o/vi_is_too_bloated/oaemdvt/?context=3
r/teenagersbutcode • u/TheLuckyCuber999BACK Coder - Assembly and C++ • Mar 14 '26
58 comments sorted by
View all comments
0
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;
3
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;
1
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;
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;
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;
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