~/talk

developing high performance coroutines for ARMs

Talkat emBO++ 2018 · 2018-03-08..03-12· [c-and-cpp, embedded-and-hardware]
links:none on file
slides:none on file

Prototype coroutine implementation for ARM uses hand-written assembly to swap SP and save/restore callee-saved registers, treating the coroutine object so its stack pointer is the first field and allowing the caller to supply the stack buffer. Context switches cost about 22 cycles per context switch; creating and entering a coroutine adds overhead so a simple state machine runs ~11 cycles per state while the coroutine path measures ~47 cycles, so the break-even is around 70 states. It passes 32/64-bit values via argument registers and supports lambdas/function objects on bare metal.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 10:54Co-routine basics and properties
  3. 20:20ARM assembly context switching
  4. 27:29Performance comparison with state machines
  5. 31:22State machine vs co-routine example
  6. 36:16Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.