[Top][All Lists]

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

Re: [Tinycc-devel] alinged/unaligned on OpenBSD

From: Herman ten Brugge
Subject: Re: [Tinycc-devel] alinged/unaligned on OpenBSD
Date: Sun, 31 Jan 2021 14:46:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

On 1/28/21 9:27 AM, grischka wrote:
Herman ten Brugge wrote:
I implemented load/store bytes for packed structs in tcc (see attachment).
Can I push it to mob?

Did you test this?  What happens if you enable this for
any structs
    //#ifdef TCC_TARGET_ARM
               //if (packed)
                    f->type.t |= VT_PACKED;
and run the tests?
I did test this on arm32 openbsd. This is where the problem was.
However the above patch fails. I will provide a new patch.
I need to add support float/double/long double/pointers for this to work.

Btw, do we really need all these gen_increment_tcov ()'s?
Can't we just use the inc(0, TOK_INC) for all targets?

I did some measurements.
Compile tcc with itself 100 times with test coverage. (times in seconds):

         function TOK_INC  slowdown
x86_64      11.28   14.09       25%
i386        14.80   18.08       22%
arm32      233.53  415.94       78%
arm64       83.53  104.47       25%
riscv64     26.70   28.48        7%   (qemu 10 times)

I did this because I saw a large slowdown.
The risc target is measured in qemu so not that reliable.


reply via email to

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