tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] [PATCH 2/2] stdatomic: x86_64 implementation


From: Dmitry Selyutin
Subject: Re: [Tinycc-devel] [PATCH 2/2] stdatomic: x86_64 implementation
Date: Fri, 12 Mar 2021 01:58:38 +0300

Yes, sorry, I should have mentioned that it currently supports System V ABI only. Thanks for pointing this.

пт, 12 мар. 2021 г., 01:57 Elijah Stone <elronnd@elronnd.net>:
> +__atomic_store_4:
> + movl %esi,(%rdi)

This only works for the sysv abi (unices), not on windows, because
parameters come in different registers there.  See
https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention for
windows' calling convention; probably not hard to work around with
macros (though cmpxchg might require some extra fanangling).

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]