tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Can be extended for C++?


From: Chris Lattner
Subject: Re: [Tinycc-devel] Can be extended for C++?
Date: Mon, 15 Oct 2007 08:35:07 -0700

Methods defined inline in classes can refer to typedefs and ivars defined later in the class. This requires parsing method bodies after the top level class is fully analyzed.

-Chris

http://nondot.org/sabre
http://llvm.org

On Oct 15, 2007, at 8:27 AM, Antti-Juhani Kaijanaho <address@hidden > wrote:

On Mon, Oct 15, 2007 at 11:59:00AM +0200, Ivo wrote:
Yes. The code generator is intertwined with the parser. Also, I seem to remember reading somewhere that a single pass C++ compiler is impossible
due to the nature of the language. tcc is a single pass compiler.

The C++ language, like C, includes certain warts specifically to allow
for one-pass compilation.  I am not aware of any C++ features that
require more than one pass, but I could be wrong.

--
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/


_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel




reply via email to

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