Ok I remember, in fact tcc compiled by tcc only supports static build atm on 
macOS.

If we compile tcc with clang both static and shared versions do work.

My test suite produces:

     56 -rwxr-xr-x    1 jullien  staff       25668 Jan 14 15:56 
tinycc-clang-shared

    872 -rwxr-xr-x    1 jullien  staff      444412 Jan 14 15:55 
tinycc-clang-static

    784 -rwxr-xr-x    1 jullien  staff      399508 Jan 14 15:53 
tinycc-tcc-static

 

That's what (only tcc statics) means, gcc and/or clang actually work.

 

To support shared version, tcc must allow all clang macOS specific options 
which is not the case, I can't remember who but a maintainer asked me to not 
pollute tcc with all macOS clang specific options.

 

If all maintainers agree, I can try to add them back. Just tell me.

 

Note that FreeBSD also supports tcc dynamic build, hence, the revised table is 
as below:

 

OS      | cpu   | Compilers     | Status

--------+-------+---------------+-----------------------

Linux   | arm   | gcc/clang/tcc | Ok

        | arm64 | gcc/clang/tcc | Ok

        | riscv | gcc/clang/tcc | Ok

        | x64   | gcc/clang/tcc | Ok

        | x86   | gcc/clang/tcc | Ok (on real PIII!!)

--------+-------+---------------+-----------------------

FreeBSD | arm64 | gcc/clang/tcc | Ok

        | x64   | gcc/clang/tcc | Ok

--------+-------+---------------+-----------------------

NetBSD  | arm64 | gcc/clang/tcc | Ok a clang lib fails

        | x64   | gcc/clang/tcc | Ok

--------+-------+---------------+-----------------------

OpenBSD | arm64 | gcc/clang     | Ok

        | x64   | gcc/clang     | Ok

        | x86   | gcc/clang     | Ok

--------+-------+---------------+-----------------------

macOS   | x64   | clang/tcc     | Ok (only tcc static)

--------+-------+---------------+-----------------------

Windows | x64   | gcc/tcc       | Ok (Cygwin build)

        | x86   | gcc/tcc       | Ok (Cygwin build)

--------+-------+---------------+-----------------------

??      | c67   | ??            | No info

 

-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On 
Behalf Of Daniel Glöckner
Sent: Thursday, January 14, 2021 14:34
To: jull...@eligis.com; tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] All known working ports

 

On Thu, Jan 14, 2021 at 12:17:23PM +0100, Christian Jullien wrote:

> macOS   | x64   | clang/tcc     | Ok (only tcc static)

 

You reported success with dynamic linking on June 21.

Why only static this time?

 

Best regards,

 

  Daniel

 

_______________________________________________

Tinycc-devel mailing list

Tinycc-devel@nongnu.org

https://lists.nongnu.org/mailman/listinfo/tinycc-devel

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

Reply via email to