a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by CrazyEyeJoe

C may make assembly less useful on x86 architectures, but for different custom architectures (like the one I work with, I also do embedded systems), compilers aren't quite so advanced. Assembly can still provide very significant optimisations in those cases.





briandmyers  ·  3906 days ago  ·  link  ·  

Good point. I try to use inline assembler for cases like that, if possible. Often you can make a very efficient semaphore with the proper assembler instruction.