zlacker

[return to "Customasm – An assembler for custom, user-defined instruction sets"]
1. IshKeb+sn8[view] [source] 2025-01-15 07:51:28
>>zdw+(OP)
This is very cool. On the topic of assembly, does anyone know of a language that is higher level than assembly, but retains the property that the output doesn't depend on the compiler or its flags?

I want it for low level CPU benchmarks and tests. Using C or assembly for those both suck.

I don't really know exactly how this would look (is the register allocator part of the spec?) but has anyone tried something like this?

◧◩
2. action+MG8[view] [source] 2025-01-15 11:12:22
>>IshKeb+sn8
That sounds like a tall order. If you want it for CPU benchmarks, you presumably want to be able to use all real CPU machine instructions. Or a simpler language instruction set but with an optimizer, but it's hard to write an optimizer and then you could never change the optimizer.
[go to top]