News for hackers. Stuff that matters.
Re:(Debugging Story) Inline Assembly Dangers by vnorilo on Monday June 10, 2024 @02:59AM (#40630958)
The more I've written code close to metal (mostly SIMD for signal processing), the more I've grown to prefer either intrinsics or separate translation unit for assembly.

If you want your code to intertwine with what the C compiler does, intrinsics are great.

If you don't, .s is great.

Re:(Debugging Story) Inline Assembly Dangers by pjmlp on Monday June 10, 2024 @03:49AM (#40631197)
Exactly, this is the right approach.
Re:(Debugging Story) Inline Assembly Dangers by immibis on Monday June 10, 2024 @10:04AM (#40633820)
And the only way to use new instructions is to make them slow or to wait for a compiler update.