top | item 14812887

(no title)

ashwin67 | 8 years ago

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.

discuss

order

codewritinfool|8 years ago

Agreed. I often don't have the resources on the target required to even attempt this.

fhood|8 years ago

What specific tasks require assembly?

monocasa|8 years ago

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.

boznz|8 years ago

timing, timing, timing