[Top][All Lists]

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

Re: [Tinycc-devel] c89

From: KHMan
Subject: Re: [Tinycc-devel] c89
Date: Wed, 27 Sep 2017 11:21:21 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 9/27/2017 11:14 AM, Larry Doolittle wrote:
Friends -

On Tue, Sep 26, 2017 at 03:49:09PM -0700, Larry Doolittle wrote:
Someone asked about c89.  I made a simple experiment on mob.
1.  Replace 67 //-style comments with /* */
2.  #define inline __inline__ in tcc.h
3.  Use --std=c89 under gcc-4.9.2 on x86_64
The result builds and passes self-tests.

I went through the tcc compile with --std=c89 -pedantic and
--std=c99 -pedantic options.  That flagged the "long long" feature
mentioned already, plus a bunch more potential barriers to strict
c89 or even c99 compilers.

Does someone have a concrete example of a c89 compiler they hope to
boostrap from?  Preferably one that can be downloaded and run (maybe in
an emulator) without payment.  For bootstrapping purposes, there are many
workarounds that can be considered that might not fly for a production


Kein-Hong Man (esq.)
Selangor, Malaysia

reply via email to

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