Notes & Code

Notes & Code

Plates for compiler & pianoforte, engraved by Paulo Matos, Nuremberg

Latest Faster, With Guardrails (Pl. XXIV, 25 Sep)On the bench Rightkey and PetoVita

x86-64 guest

FEX-Emu IR

ARM64 host

  1. fld [rsp]
  2. fsincos
  3. fmul st0, st0
  4. fxch
  5. fmul st0, st0
  6. faddp
  1. PushStack %10 i128
  2. F80SINCOSStack
  3. F80MulStack #0x0, #0x0
  4. F80StackXchange #0x1
  5. F80MulStack #0x0, #0x0
  6. F80AddStack #0x1, #0x0
translated code runs natively
Fig. 1 Section through the translator. The x87 code (a) from FEX x87 Stack Optimization, Pl. XI, becomes FEX-Emu’s intermediate representation (b), which is compiled to ARM64 at run time (c).
88
Fig. 2 Elevation of a beginning. Middle C at the first lesson, January 2022 (a); the first public performance, eight months later (b).

Section A–AIndex of plates

  1. Plate 24 Code:

    Faster, With Guardrails8 min

  2. Plate 23 Code:
  3. Plate 22 Code:
  4. Plate 21 Code:

    How fast do you want it?5 min

  5. Plate 20 Code:

From the notes

  1. Plate 17 Notes:

All 24 plates, 2018–2026 or subscribe by RSS code   notes

I’m Paulo Matos, a software engineer in Nuremberg. I work on compilers and dynamic binary translation as a freelance consultant with Igalia; my current focus is FEX-Emu, which runs x86 and x86-64 applications on ARM64, mainly games. By night I play the piano.

This site is where I share technical notes, project updates, and occasional tangents about the things I’m learning. Think of it as a public notebook: part documentation, part exploration.

Engraver
Paulo Matos, Nuremberg
Plates
I–XXIV (24)
Period
2018–2026
Code
22 plates
Notes
2 plates

Detail BWorks in progress

On the bench, as listed by ls ~/building

Section C–CFurther reading

Want to know more? Check out the About page, or find me on GitHub.