tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [PATCH] win32: add include/getopt.h with static imple


From: Christian JULLIEN
Subject: Re: [Tinycc-devel] [PATCH] win32: add include/getopt.h with static implementation
Date: Thu, 1 Aug 2019 08:01:32 +0200 (CEST)

You're right! After defining what tcc is, it will be easier to decide how it evolves.
Let me start a definition:

Tcc is a C compiler implementing a large subset of C90.
It add some gcc and VisualC extensions to ease port from those compilers
It supports different 32 and 64bit processor architectures (mainly x86, x86_64, ARM, Aarch64)
It currently supports mainstream Linux distributions and most recent version of Windows.
On Linux, it uses system includes and libraries that generally come pre-installed. The windows port comes with its own ssubset of includes and libraries to provide a standalone C compiler. A more complete Windows subset is provided by external package shared with migw64.

So, I think we can add without problems:
- C90 missing features
- gcc or VisualC extensions
- more? processor backend
- fixes to support more Linux distribs



Le : 31 juillet 2019 à 20:58 (GMT +02:00)
De : "avih" <address@hidden>
À : "address@hidden" <address@hidden>, "Michael Matz" <address@hidden>, "Christian JULLIEN" <address@hidden>
Objet : Re: RE : Re: [Tinycc-devel] [PATCH] win32: add include/getopt.h with static implementation


> On Wednesday, July 31, 2019, 8:55:18 PM GMT+3, Christian JULLIEN <address@hidden> wrote:
>
> This my THIRD attempt to reply to this thread since Jul, 26. The
> two prev. attempts never reached the list. Hope this one will work
> and go to the list!

It did, at least to me (but I was addressed). FWIW, I don't recall seeing
prior replies from you, though I also don't see my reply from today at:
https://lists.nongnu.org/archive/html/tinycc-devel/2019-07/index.html
But the fact that you got it probably means it got through. Not sure
what's up with the list manager...

> As I said previously (basically the same as Michael): ...

> As I'm aware of, the win32 port is not targeted to support POSIX
> applications. While getopt is great, it introduces a third category
> and the gap from POSIX is huge. For example, among others, I would
> love to have mmap.

Indeed. Though when I now think about it again, I'd say the definition
of tcc on Windows would be "like MinGW, but smaller, and extensible to
some extent with additional MinGW headers".

FWIW, MinGW does include getopt.h at its root include dir (I assume
implemented at glibc).

> That said, if the group decides that's a good idea, I will not protest
> but, in this case put getopt.h in a new directory like include/posix
> to make it clear.

Hmm... and make it a default include path? otherwise
`#include <getopt.h>` would not work out of the box, which kind of
defeats its purpose and usefullness IMO.

But anyway, indeed the main question to answer first and foremost is
what's the desirable scope of tcc on windows, and once it's answered
clearly, then hopefully the rest would be easy to derive.

Avi

reply via email to

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