[Top][All Lists]

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

Re: [Tinycc-devel] issues/questions with stddef.h which comes with tcc

From: Joshua Scholar
Subject: Re: [Tinycc-devel] issues/questions with stddef.h which comes with tcc
Date: Mon, 4 Jan 2021 10:17:56 -0800

More good news.  Thank you.

On Mon, Jan 4, 2021 at 9:54 AM Ivo van Poorten <ivopvp@gmail.com> wrote:
On Mon, 4 Jan 2021 09:12:20 -0800 Joshua Scholar
<joshuascholar@gmail.com> wrote:
> And I want to mention that there's a license problem for people who
> want to embed Tiny C in a product if they have to use GCC headers,
> since GCC is full GPL.

I have the impression that you do not know the difference between
compiler headers and libc headers.

You don't need GCC compiler headers for tcc.

If you use glibc and its headers, all is fine. Both tcc and glibc are
licensed under the LGPL.

> It would be nice to supply people with a solution to that real
> problem.

You can also use other libc implementations, like bionic or musl. If
that doesn't work at first, that means there are bugs to be fixed.
Either in the library, or in tcc.

This separation of concerns is not obsolete. It's in the latest C17


P.S. an extreme example: it is not guaranteed by the C standard that you
can link object files compiled by different compilers, say clang, gcc,
icc and tcc. That's because the implementation dependent stuff can
differ between compilers, and then all hope is lost.

Compiler headers define those differences. libc headers define the rest.

Tinycc-devel mailing list

reply via email to

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