sag@lemm.ee to Programmer Humor@lemmy.ml · edit-21 year agoAnyone here use assembly?lemm.eeexternal-linkmessage-square64linkfedilinkarrow-up1169arrow-down11
arrow-up1168arrow-down1external-linkAnyone here use assembly?lemm.eesag@lemm.ee to Programmer Humor@lemmy.ml · edit-21 year agomessage-square64linkfedilink
minus-squaredavel [he/him]@lemmy.mllinkfedilinkEnglisharrow-up7arrow-down1·1 year agoAssembly code is for writing C compilers, and C compilers are for writing Lisp interpreters.
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up9·1 year agoI saw a Scheme interpreter written in assembly running a C compiler written in Scheme.
minus-squareRestrictedAccount@lemmy.worldlinkfedilinkarrow-up2·1 year 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-up0·1 year 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.
minus-squarewewbull@feddit.uklinkfedilinkEnglisharrow-up2·1 year agoOnly the most very basic compilers. C compilers are in C mainly.
minus-squaredavel [he/him]@lemmy.mllinkfedilinkEnglisharrow-up4·1 year 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-up2·1 year agoTalking about bootstrap here?
Assembly code is for writing C compilers, and C compilers are for writing Lisp interpreters.
I saw a Scheme interpreter written in assembly running a C compiler written in Scheme.
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.
True, it was computer science.
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?