snaggen@programming.dev to Programming@programming.devEnglish · 1 year agoLinus Torvalds Takes On A Performance Patch: "I Relax By Playing With Inline Assembly"www.phoronix.comexternal-linkmessage-square40fedilinkarrow-up1126arrow-down12file-textcross-posted to: linux@kbin.socialfurprogs
arrow-up1124arrow-down1external-linkLinus Torvalds Takes On A Performance Patch: "I Relax By Playing With Inline Assembly"www.phoronix.comsnaggen@programming.dev to Programming@programming.devEnglish · 1 year agomessage-square40fedilinkfile-textcross-posted to: linux@kbin.socialfurprogs
minus-squareNiHaDuncan@lemmy.worldlinkfedilinkEnglisharrow-up25·1 year agoHe says this because he kind of ignorantly (his own wordage) wrote in machine code for quite some time before realizing assembly was a thing. So for Linus inline assembly is to machine code as python is to c for a lot of us.
minus-squaremrkite@programming.devlinkfedilinkEnglisharrow-up2·1 year agoOne of my oldest programming books is all about using machine language to program. https://vintageapple.org/apple_ii/pdf/Apple_Machine_Language_1981_(raw-bw).pdf At the time, even assemblers cost money. I remember saving up for Merlin which is an assembler for the Apple II.
minus-squarejormaig@programming.devlinkfedilinkEnglisharrow-up1·1 year agoWhat does he mean by machine code? Like assembly files or literally 1s and 0s?
minus-squareHexarei@programming.devlinkfedilinkEnglisharrow-up2·1 year agoHe didn’t realize assembly was a thing, so he was actually writing machine code instructions
minus-squaresolidsnail@programming.devlinkfedilinkEnglisharrow-up1·1 year agoHe was probably working with bytes and not individual bits, but yeah. He basically wrote executables directly (to my understanding).
He says this because he kind of ignorantly (his own wordage) wrote in machine code for quite some time before realizing assembly was a thing. So for Linus inline assembly is to machine code as python is to c for a lot of us.
One of my oldest programming books is all about using machine language to program.
https://vintageapple.org/apple_ii/pdf/Apple_Machine_Language_1981_(raw-bw).pdf
At the time, even assemblers cost money. I remember saving up for Merlin which is an assembler for the Apple II.
What does he mean by machine code? Like assembly files or literally 1s and 0s?
He didn’t realize assembly was a thing, so he was actually writing machine code instructions
He was probably working with bytes and not individual bits, but yeah. He basically wrote executables directly (to my understanding).