Documentation about the inline assembler

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Documentation about the inline assembler

Post by Roberthh » Sun Nov 10, 2019 7:45 am

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.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Documentation about the inline assembler

Post by pythoncoder » Sun Nov 10, 2019 9:38 am

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.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Documentation about the inline assembler

Post by pythoncoder » Wed Dec 16, 2020 9:11 am

Hi Robert, did you ever find anything useful on this?
Peter Hinch
Index to my micropython libraries.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Documentation about the inline assembler

Post by Roberthh » Wed Dec 16, 2020 9:28 am

Actually I did not look into that further. The last time I tried, inline assembler on ESP32 did not work at all.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Documentation about the inline assembler

Post by pythoncoder » Thu Dec 17, 2020 5:54 am

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...
Peter Hinch
Index to my micropython libraries.

Post Reply