Notes & Code

Notes & Code

I’m Paulo Matos, a software engineer and pianist. I write about compilers, the things I build, and learning music.

Recent posts

  1. Post 23 Code:
  2. Post 22 Code:
  3. Post 21 Code:

    How fast do you want it?5 min

Browse all 24 posts or subscribe by RSS

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 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).

I’m a freelance software engineer focused on compiler engineering and low-level systems. This site is my public notebook; more about me.

Projects