Join Nostr
2026-02-27 12:53:17 UTC
in reply to

GNU/翠星石 on Nostr: Reid :blobcat_happy: On my machine, it's a random value with no optimizations and ...

On my machine, it's a random value with no optimizations and zero'd with -O1, -O2 & -O3.

It seems GCC's optimizer is so good, it determines that the function is 30 bytes long and by adding 2 bytes to zero x with `xor %edx,%edx`, the function fits in 32 bytes and is aligned;
0000000000001050 <main>:
1050: 48 83 ec 08 sub $0x8,%rsp
1054: 31 d2 xor %edx,%edx
1056: 48 8d 35 a7 0f 00 00 lea 0xfa7(%rip),%rsi # 2004 <_IO_stdin_used+0x4>
105d: bf 02 00 00 00 mov $0x2,%edi
1062: 31 c0 xor %eax,%eax
1064: e8 c7 ff ff ff call 1030 <__printf_chk@plt>
1069: 31 c0 xor %eax,%eax
106b: 48 83 c4 08 add $0x8,%rsp
106f: c3 ret