[Top][All Lists]

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

Re: [Tinycc-devel] [PATCH 0/4] stdatomic: code generators

From: Elijah Stone
Subject: Re: [Tinycc-devel] [PATCH 0/4] stdatomic: code generators
Date: Mon, 15 Feb 2021 01:11:31 -0800 (PST)

On Mon, 15 Feb 2021, grischka wrote:
Why not just provide functions as a library and wrap them into macros from stdatomic.h? No or almost no changes to tcc's generator would be needed.

I've posted already a WIP version of atomics-as-support library for amd64. Attached it again.

(It needs some scaffolding from the header--__builtin_constant_p/_Static_assert/sizeof shenanigans--but nothing too bad.)

Implementing them as functions does harm performance, but maybe that's not a very big problem since the atomic itself incurs a decent performance hit?


Attachment: atomic86_64.S
Description: Text document

reply via email to

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