Source
- URL: https://x.com/TylerGlaiel/status/1871642886464516129
- Author: Tyler Glaiel (@TylerGlaiel)
- Posted: 2024-12-24 19:43:32
Branch
1/ @TylerGlaiel
IIRC your language lets you run code at compile time as part of the compiling process so why not have the assembler be at that level instead of in the compiler itself and let the compile time code gen be able to output machine code directly & let the assembly instructions be part of the standard library for each specific platform instead?
fwiw while I’ve used intrinsics in C++ at least a little bit here and there, I can’t remember the last time I actually needed inline asm, so a “this is a very optional thing that you bring in if you actually need it” seems like the most appropriate design to me
2/ @Jonathan_Blow
@TylerGlaiel @rflaherty71
That’s what I am talking about at the beginning when I said “put the assembler in userspace” — it would be code in the language itself rather than internally to the compiler. But we are not going to generate our own exe that way because it’s slow and indirect.