[Top][All Lists]

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

Re: [Tinycc-devel] [PATCH 1/3] stdatomic: atomic builtins parsing suppor

From: Elijah Stone
Subject: Re: [Tinycc-devel] [PATCH 1/3] stdatomic: atomic builtins parsing support
Date: Tue, 26 Jan 2021 13:23:40 -0800 (PST)

On Wed, 27 Jan 2021, Dmitry Selyutin wrote:

I'm not sure how to check the future implementation

One easy way is to make a global counter and spawn a few threads incrementing it atomically in a loop. Then at the end check it has the right value.

the code generator

I started building out atomics for tcc recently, as a support library, before deciding that it made more sense for them to go in the code generator. But maybe you'll find my progress on that front (only for amd64) helpful; it is attached.

Attachment: atomic86_64.S
Description: Text document

reply via email to

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