These patches incorporate the suggested ideas and hopefully simplify
the original source code I posted.

The first patch in the series follows gcc-like logic (which seems to
be supported by clang as well).
The second one introduces a very basic and preliminary support for
x86_64 target.

Dmitry Selyutin (2):
  stdatomic: refactor parser and generator
  stdatomic: x86_64 implementation

 include/stdatomic.h     |  52 +++++++-------
 lib/Makefile            |   2 +-
 lib/atomic-emu.h        |  15 +++++
 lib/atomic-x86_64-emu.c |  16 +++++
 lib/atomic-x86_64.S     | 129 +++++++++++++++++++++++++++++++++++
 tccgen.c                | 146 ++++++++++++++++++++--------------------
 tcctok.h                |  34 +++++-----
 7 files changed, 277 insertions(+), 117 deletions(-)
 create mode 100644 lib/atomic-emu.h
 create mode 100644 lib/atomic-x86_64-emu.c
 create mode 100644 lib/atomic-x86_64.S

--
2.30.1

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to