tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] State of the tcc project (jiang)


From: grischka
Subject: Re: [Tinycc-devel] State of the tcc project (jiang)
Date: Sat, 21 Jun 2014 10:07:36 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

jiang wrote:
         /* bitfield store handling */
+        SValue tmp;
+        tmp = vtop[0];
[...]
+        vtop--;
+        vpushv(&tmp);


This is still not a solution.  See

    #include <stdio.h>
    int main(int argc, char **argv)
    {
        struct {
            unsigned a:9, b:5, c:7;
        } _s, *s = &_s;
        int n = 250;

        s->a = s->b = s->c = n + 4;
        printf("--> %d / %d / %d\n", s->a, s->b, s->c);
        return 0;
    }
    --> 432 / 16 / 126

gcc & msvc:
    --> 30 / 30 / 126
tcc release_0_9_26
    --> 254 / 30 / 126

FWIW, the line above is the reason why I'm trying to investigate
this.  Let's see if Mr. jiang can come up with something useful
(and how long it will take).

-- gr



reply via email to

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