tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types


From: grischka
Subject: Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types
Date: Fri, 19 Mar 2021 14:35:33 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Dmitry Selyutin wrote:
Some complex types can still be small and simple enough to fit into
register. Other compilers allow some operations on these types, and it
seems to be quite a reasonable choice. From now on, we should be able
to compile the following artificial example:

    struct combo {
        uint16_t lo;
        uint16_t hi;
    };

Actually, why don't you try to use just the normal tcc function parser?

It knows how to type-check arguments, it knows how to assign the correct
return type, it knows how to call functions according to ABI conventions
on Linux and Windows as well, and it knows how to pass small structs in
registers.

All what you're trying to reinvent, for what reason?

-- gr




reply via email to

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