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


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to