News for hackers. Stuff that matters.
Re:Introduction to ARM Assembly Basics by oriolid on Sunday May 28, 2017 @06:26AM (#14433802)
I've also been working with DSP processors in audio processing. The only time I've used actual inline assembly was storing stack pointer to measure stack usage.

For saturating arithmetic and other stuff we used compiler intrinsics, which freed us from handling register allocation, stack management etc by hand. On that processor there weren't special instructions for saturating arithmetic but a flag was used instead, the compiler also kept track of that one too.

We did read the assembly result and tweaked C code until assembly looked like what was expected, though.

Re:Introduction to ARM Assembly Basics by dmytrish on Sunday May 28, 2017 @11:18AM (#14434692)
Technically, assembly is not required for measuring stack: just use regular C address of any local variable/function argument (minus an address of some local variable in main) to have some approximation of stack usage.
Re:Introduction to ARM Assembly Basics by oriolid on Sunday May 28, 2017 @04:06PM (#14435873)
True. But I was young, stupid and had just completed a course on assembler on that processor. Money well spent.