On 21/10/2020 20.55, Larry Hastings wrote:
On 10/21/20 5:58 AM, Petr Viktorin wrote:
At the risk of going off topic: That's for GCC. As far as I know, MSVC uses something like __declspec( thread ). What are the options for generic C99 compilers, other than staying slow?
As a practical matter: does CPython even support "generic C99 compilers"? AFAIK we support three specific compilers: GCC, Clang, and MSVC.
(Maybe we also support icc? I think mostly because it supports GCC language extensions.)
We don't prohibit users to use exotic compilers. Some users maintain Python on platforms like AIX and Solaris with closed source compilers. In my opinion it would fine to focus on X86_64 and GCC first. That will cover the majority of servers and consumer PCs. Clang and GCC have a similar feature set and extensions, so clang should be doable with manageable amount of effort, too. After X86_64 I'd consider AArch64 (ARM64) and MSVC next. Christian