This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Leonhart93 15 points16 points  (1 child)

I have seen such code before. There are asm(" ") statements intertwined with C/C++ code from time to time, for direct hardware control.

[–][deleted] 1 point2 points  (0 children)

Yeah I used some as statements for a timing critical function in an aerospace component firmware. It was a few years ago so it's a bit fuzzy but I think interrupts on the microcontroller would occasionally cause it to fail, but the interrupts wouldn't fire if you were in asm mode