Re:(Debugging Story) Inline Assembly Dangers
by AshamedCaptain on Monday June 10, 2024 @09:25AM
(#40633419)
> Intrinsics are preferable if the functionality you need is at all possible with those. But I'd be surprised if you could easily clear the BSS with those.
You can do that with a plain memset.
They are just using inline asm because they don't want the compiler to use stack/globals before they've had time to initialize them, which is very risky.
You can do that with a plain memset.
They are just using inline asm because they don't want the compiler to use stack/globals before they've had time to initialize them, which is very risky.