tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] [PATCH 0/2] stdatomic: function calls; basic x86_64 suppo


From: Dmitry Selyutin
Subject: [Tinycc-devel] [PATCH 0/2] stdatomic: function calls; basic x86_64 support
Date: Thu, 11 Mar 2021 23:11:38 +0300

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



reply via email to

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