Experimental browser for the Atmosphere
I have a LEA story. int c = a + b; int flags = __readeflags(); // MSVC, to check carry bit int + doesn't promise ADD instruction, so LEA was used. LEA math doesn't set the flags. So the compiler moved the intrinsic elsewhere. No amount of barrier stopped it. Because it never made sense in C++ VM.
Mar 31, 2025, 5:56 PM
{
"text": "I have a LEA story.\n\nint c = a + b;\nint flags = __readeflags(); // MSVC, to check carry bit\n\nint + doesn't promise ADD instruction, so LEA was used.\nLEA math doesn't set the flags.\nSo the compiler moved the intrinsic elsewhere.\nNo amount of barrier stopped it. Because it never made sense in C++ VM.",
"$type": "app.bsky.feed.post",
"langs": [
"en"
],
"reply": {
"root": {
"cid": "bafyreifkki55ign4qnetgyjqc4j7o4srgkcjhtssb5ypwe3k5rcvq6esq4",
"uri": "at://did:plc:alopn4f2hiv6wgqq4vyfaqzu/app.bsky.feed.post/3lloogk6xdk2w"
},
"parent": {
"cid": "bafyreifkki55ign4qnetgyjqc4j7o4srgkcjhtssb5ypwe3k5rcvq6esq4",
"uri": "at://did:plc:alopn4f2hiv6wgqq4vyfaqzu/app.bsky.feed.post/3lloogk6xdk2w"
}
},
"createdAt": "2025-03-31T17:56:51.784Z"
}