[Libre-soc-bugs] [Bug 979] Implement C-based Power ISA decoder compiler

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Sep 2 12:16:44 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=979

--- Comment #19 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #16)
> You know what? I thought about it more. Who needs these fields, we can
> create assemble/disassemble functions dealing with fields immediately,
> instead of passing the fields into the generic function.
> This way, the whole assemble/disassemble process becomes just a simple jump
> to the corresponding function.

you have to be very careful with higher-order-functions because they are
very expensive (unless static-inlined, and even then)

this has to be a *high performance* API, with a budget of only 50 CPU cycles
per emulated instruction.

each function call blows a whopping *ten percent* of that available budget.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list