News for hackers. Stuff that matters.
Re:No sane compiler would optimize atomics (2015) by Someone on Monday July 12, 2021 @03:48AM (#27808046)
Another extremely normal thing assembly allows you to do, but C doesn’t: access carry and overflow flags.
Re:No sane compiler would optimize atomics (2015) by spc476 on Monday July 12, 2021 @04:35AM (#27808268)
Not all CPUs have carry and overflow flags. For example, MIPS, or SPARC, or the new RISC-V.
Re:No sane compiler would optimize atomics (2015) by stormbrew on Monday July 12, 2021 @02:21PM (#27813365)
really relevant to this discussion, though, the pdp11 did.
Re:No sane compiler would optimize atomics (2015) by umanwizard on Monday July 12, 2021 @01:00PM (#27812426)
Another (modern) example: SIMD instructions.