3 ms·
> Support for this flag landed in Clang in 2020 only for X86, SystemZ and PowerPC. How relevant is x86 code in terms of security? Genuine question. I thought F
by codeflo 6y ago
> Support for this flag landed in Clang in 2020 only for X86, SystemZ and PowerPC.
How relevant is x86 code in terms of security? Genuine question. I thought Firefox defaults to x86_64 now even Windows. And in open source land, wouldn’t any OS components that could be compiled with Clang be x86_64 as well?
- invokestatic 6y agoI do believe x86 in this case encompasses x86_64 (I checked this on the llvm phabricator to be sure).
- codeflo 6y agoOh? That’s great then. Not the kind of sloppiness I’d have expected in a compiler blog though. Especially since it deep dives into calling conventions, which differ quite a bit between the two.
- invokestatic 6y agoIn the LLVM project, x86_64 is handled inside the x86 namespace. To a compiler, there’s quite a lot of overlap between x86 and the 64-bit extensions that it makes sense to keep them together. In the source, where the difference matters, you’ll see the prefix X86_32 and X86_64.