tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] 124_atomic_counter.c is broken on arm and arm64


From: grischka
Subject: Re: [Tinycc-devel] 124_atomic_counter.c is broken on arm and arm64
Date: Fri, 09 Apr 2021 11:12:59 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Dmitry Selyutin wrote:
Hi Christian,

I've been under impression that this should be skipped until
per-platform support is implemented. The Makefile marks it as skipped;
isn't it skipped when running the whole test suite?

Because you were using ifneq.  Anyway, I fixed it.  Also, windows
doesn't know pthreads.

And well, this is tinycc.  We do not need 6 new files to add just
120 lines of C to the library.

P.S. Is it possible to build cross-compile tcc for ARM on x86, and check
all tests? Could you help me, please?

No, cross-compiled code cannot be run on the platform where it
was compiled, in general.  In many cases it cannot even be fully
built, when it relies on include headers or libraries of a
different system.  See also my note on lib/stdatomic.c, for
the same reason:

  // for libtcc1, avoid including files that are not part of tcc
  // #include <stdint.h>

--- grischka



reply via email to

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