tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Basic questions about *implementation details* of tin


From: Dave Dodge
Subject: Re: [Tinycc-devel] Basic questions about *implementation details* of tinycc please....
Date: Mon, 2 Oct 2006 15:49:43 -0400
User-agent: Mutt/1.5.12-2006-07-14

On Fri, Sep 29, 2006 at 10:42:52AM -0700, address@hidden wrote:
> Can you please point me to some web pages describing at a high level
> the architecture of tinycc??

Look at chapter 8 of this document:

  http://fabrice.bellard.free.fr/tcc/tcc-doc.html

> Was tinycc's way of creating a C compilers easier or harder
> than using an abstract syntax tree?

It started out as an entry for the Obfuscated C Contest and grew from
that into a full C compiler:

  http://fabrice.bellard.free.fr/otcc/

Its goals include being very small and very fast.  As a result it
doesn't always follow normal compiler design principles.  If you're
trying to study how a _typical_ compiler is designed, tcc may not be
the best choice.

On the other hand its small size and simple design means that it's
much easier to examine at the code level than a typical compiler.  For
example the bulk of it is a single .c file that you can easily edit
and experiment with.

                                                  -Dave Dodge




reply via email to

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