Re:Guy does demoscene tricks to ESP32 powered display (2022)
by amelius on Friday October 04, 2024 @07:06PM
(#41746344)
Sounds nice in theory, and it makes sense to some extent, but in practice that leaves you with a plethora of different instruction sets, so you'll have binary incompatibility issues all the time. Instead of downloading that "x86_64" package, you now have to download xtensa_par1_par2_par3_par4 etc.
Re:Guy does demoscene tricks to ESP32 powered display (2022)
by ithkuil on Saturday October 05, 2024 @02:31AM
(#41748101)
BTW I wrote a gdb-protocol speaking software debugger component for the esp8266 (before xtensa wrote/published their own)
I had to reverse engineer a lot of details (number of registers, Layout of the stack frame in various kinds of interrupts and traps etc) because xtensa didn't publish the actual parameters of their xtensa instantiation
When instantiating an xtensa core you can choose how many registers you want, whether you want to have register windows or not, and many other options.
If you want a compiler that targets a given instance of that architecture you have to tailor it to those parameters.