Hello all. Has anyone of you seen a documentation about using the Xtensa inline assembler with the decorator @micropython.asm_xtensa?
The only information I kept are a few words puiblished a while ago about the ESP8266 implementation: https://github.com/micropython/micropyt ... d2db3ff4a3 But that does not fully match the ESP32 situation. Adn even there things might have changed.
Documentation about the inline assembler
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Documentation about the inline assembler
You might have to write it, as I did for the Arm Thumb assembler. Welcome to the world of Python source and processor manuals
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Documentation about the inline assembler
Hi Robert, did you ever find anything useful on this?
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Documentation about the inline assembler
Actually I did not look into that further. The last time I tried, inline assembler on ESP32 did not work at all.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Documentation about the inline assembler
Perhaps I'll try to write a native module instead. Although documentation on that is rather thin on the ground. Whatever happened to the season of docs?
[EDIT]
Writing a native module was easier than I expected. It's 4.4x faster than Viper on a Pyboard 1.1. Now to tangle with the ESP32 toolchain to recompile the thing, something I've resisted so far...
[EDIT]
Writing a native module was easier than I expected. It's 4.4x faster than Viper on a Pyboard 1.1. Now to tangle with the ESP32 toolchain to recompile the thing, something I've resisted so far...
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.