John Regehr on Nostr: is there a good reason all 3 x86-64 compilers use lea instead of inc or add to ...
Published at
2025-01-23 19:47:34Event JSON
{
"id": "4698410ffd4dcbaa35fb6d9d5402689b718d079bb3ca97915844ee407a66aeee",
"pubkey": "a1a4eb540235341a2db0d8a08cfb74edc4bb06b316c7bb39580c55559ce71ba1",
"created_at": 1737661654,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/regehr/statuses/113879394171434698",
"activitypub"
]
],
"content": "is there a good reason all 3 x86-64 compilers use lea instead of inc or add to increment a long?\n\nhttps://gcc.godbolt.org/z/YnoW75zav",
"sig": "cd8deba22860b07aa80bfbe18d1da217074f0aa387e1613ec1999ce0126e23e603eb09d7c23f70f74c589d76965b1577e569214d2ea5c11da6f0bf0ec8c6800a"
}