3 ms·
I’m guessing #ASM does the assembly at read or load time? Does it desugar to something like this? (assemble ‘((mov rax %x) (add rax 1))) Anyhow I think thi
by User23 4y ago
I’m guessing #ASM does the assembly at read or load time?
Does it desugar to something like this?
(assemble ‘((mov rax %x) (add rax 1)))
Anyhow I think this is a great project. I hope you share it! I’ve often thought bootstrapping an assembler with lisp macros would be an interesting way to build a compiler from the very ground up. Assembler macros are nothing new, but I’ve never heard of an homoiconic implementation.
- rst 4y agoThe original LISP's "Lisp Assembly Program" was rather like this -- see Appendix C in the Lisp 1.5 manual, from 1962: https://www.softwarepreservation.org/projects/LISP/book/LISP%201.5%20Programmers%20Manual.pdf https://www.softwarepreservation.org/projects/LISP/book/LISP...