[Top][All Lists]

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

Re: [Tinycc-devel] Linking with libtcc1.a

From: Domingo Alvarez Duarte
Subject: Re: [Tinycc-devel] Linking with libtcc1.a
Date: Thu, 14 Apr 2022 08:53:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

Hello Ziyao !

I once did this "Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable." here https://github.com/mingodad/tinycc/commit/59e18aee0e509a3ca75dbe6f909e18c1d17893d1 maybe it would be interesting to you.

Cheers !

On 14/4/22 2:49, Ziyao wrote:
Hi list,

I am working to port musl to TinyCC.Because musl is an
implementation of libc,-nostdlib option is used to stop TinyCC from
linking the standard libc to the executable files.

But -nostdlib option also prevents TinyCC from linking libtcc1.a,which
contains serveral runtime functions (e.g. __va_arg).As for GCC,its
manual points out that using -lgcc option may be needed to work with
-nostdlib option.But it seems that there is no way to make TinyCC add
libtcc1.a to the executable file.Simply adding "-ltcc1" does not work
because libtcc1.a is not in the usual library searching path.

Will there be a solution for this?


Tinycc-devel mailing list

reply via email to

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