Re:The Rise of Python for Embedded Systems
by ashwin67 on Thursday July 20, 2017 @10:43AM
(#14812887)
Each has its own place. I write code in all languages including Python and C. Yet, I have to write code in assembly even today when the particular problem statement requires its usage. Such generalization can only be expected from a marketing campaign that this post really is.
[ Parent
| on HN ]
Re:The Rise of Python for Embedded Systems
by codewritinfool on Thursday July 20, 2017 @10:45AM
(#14812908)
Agreed. I often don't have the resources on the target required to even attempt this.
What specific tasks require assembly?
Re:The Rise of Python for Embedded Systems
by monocasa on Thursday July 20, 2017 @11:46AM
(#14813485)
Not the OP, but I've written assembly in our codebase for:
* First stage initialization
* Interrupt prologue/epilogue
* Bitbanging where you want deterministic cycle counts
* For using the FIQ for very high priority interrupts. It has it's own registers partially banked, so if you stay in r8-r13 you don't have to save and restore state at all.
So we don't use assembly for magic go faster juice, but instead when there's a coding constraint that we can't easily explain to the compiler.
Re:The Rise of Python for Embedded Systems
by elcritch on Thursday July 20, 2017 @12:20PM
(#14813801)
I'm curious to hear more how/why you use FIQ? From googling it looks like it's an ARM feature. How can/does that work with a general purpose OS or are you using bare metal ARM?
Re:The Rise of Python for Embedded Systems
by monocasa on Thursday July 20, 2017 @12:57PM
(#14814224)
We've got our own internal RTOS, not a general purpose OS.
We use it for different things depending on the board, but my favorite is a really sweet profiler that's integrated with our watchdog logic that'll give us ~1000 PC+SP samples in the 100msec or so before our watchdog timer resets our board. That's pretty invaluable for debugging.