sag@lemm.ee to Programmer Humor@lemmy.ml · edit-25 months agoAnyone here use assembly?lemm.eeimagemessage-square70fedilinkarrow-up11.06Kcross-posted to: programmer_humor@programming.dev
arrow-up11.06KimageAnyone here use assembly?lemm.eesag@lemm.ee to Programmer Humor@lemmy.ml · edit-25 months agomessage-square70fedilinkcross-posted to: programmer_humor@programming.dev
minus-squaredavel [he/him]@lemmy.mllinkfedilinkEnglisharrow-up45·5 months agoAssembly code is for writing C compilers, and C compilers are for writing Lisp interpreters.
minus-squarewewbull@feddit.uklinkfedilinkEnglisharrow-up14·edit-25 months agoOnly the most very basic compilers. C compilers are in C mainly.
minus-squaredavel [he/him]@lemmy.mllinkfedilinkEnglisharrow-up11·edit-25 months agoNot the first C compiler obviously. According to this Stack Overflow post, BCPL* begat B, which begat C. Language self-hosting is pretty fascinating. *Perhaps BCPL was originally written in assembly; I’m not certain: https://github.com/SergeGris/BCPL-compiler
minus-squareulterno@lemmy.kde.sociallinkfedilinkEnglisharrow-up6·5 months agoTalking about bootstrap here?
minus-squareRevan343@lemmy.calinkfedilinkarrow-up2·5 months agoAnd that’s how you get the Thompson hack
minus-squareRestrictedAccount@lemmy.worldlinkfedilinkarrow-up4·5 months agoBack in High School in the 80’s me and a buddy wrote a Z-80 editor assembler in TRS-DOS BASIC. It was not rocket science.
minus-squaredavel [he/him]@lemmy.mllinkfedilinkEnglisharrow-up4·edit-25 months agoI never did get very far with the TRS-80 Editor Assembler, but that was my first exposure to such things. I also remember the BASIC code for the Dancing Daemon which was replete with PEEKs and POKEs, such that much of it was written in machine code.
Assembly code is for writing C compilers, and C compilers are for writing Lisp interpreters.
Only the most very basic compilers. C compilers are in C mainly.
Not the first C compiler obviously. According to this Stack Overflow post, BCPL* begat B, which begat C. Language self-hosting is pretty fascinating.
*Perhaps BCPL was originally written in assembly; I’m not certain: https://github.com/SergeGris/BCPL-compiler
Talking about bootstrap here?
Indeed
And that’s how you get the Thompson hack
deleted by creator
Back in High School in the 80’s me and a buddy wrote a Z-80 editor assembler in TRS-DOS BASIC.
It was not rocket science.
I never did get very far with the TRS-80 Editor Assembler, but that was my first exposure to such things.
I also remember the BASIC code for the Dancing Daemon which was replete with PEEKs and POKEs, such that much of it was written in machine code.