4 ms·
It always feels really tricky imo. Intrinsics are preferable if the functionality you need is at all possible with those. But I'd be surprised if you could eas
by wyldfire 2y ago
It always feels really tricky imo. 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.
And who can remember what early clobbers is? I always forget and have to look it up because it feels especially subtle.
It'd be neat if inline asm could use something like the triple quotes in other languages. Maybe it'd be easier to format text like this.
- saurik 2y agoIn C++11 you can use R"( raw/multi-line strings for inline assembly.
- AshamedCaptain 2y ago> 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.