Related articles |
---|
post C++ template/inlining resolution simon_newsgroup@mookstar.co.uk (Simon) (2003-05-24) |
Re: post C++ template/inlining resolution idbaxter@semdesigns.com (Ira Baxter) (2003-05-29) |
Re: post C++ template/inlining resolution sbeasley@cs.uic.edu (2003-06-03) |
Re: post C++ template/inlining resolution comeau@panix.com (2003-06-05) |
Re: post C++ template/inlining resolution comeau@panix.com (2003-06-05) |
From: | sbeasley@cs.uic.edu (Shane Beasley) |
Newsgroups: | comp.compilers,comp.lang.c++ |
Date: | 3 Jun 2003 00:40:18 -0400 |
Organization: | http://groups.google.com/ |
References: | 03-05-174 |
Keywords: | C++ |
Posted-Date: | 03 Jun 2003 00:40:18 EDT |
"Simon" <simon_newsgroup@mookstar.co.uk> wrote
> I would like somehow to be able to define a set of C++ template types
> (including inline methods that are fairly simple), and pass it through
> something to get out an intermediate version (in C or some
> representation that is vaguely human readable) so I can see what it
> has resolved to and what the compiler has to play with.
As I understand it, the Comeau compiler (www.comeaucomputing.com)
compiles to an intermediate C form, which you would normally feed to a
C compiler to produce an executable. However, that means that it
should be possible to stop before the final step and get a peek at
what the C code looks like. Unfortunately, since C doesn't support
overloading, templates, etc., the names will probably all look quite
weird. Also, since it *is* a compiler, it might optimize the C output
such that it really has nothing much to do with the original C++
source aside from that they both behave the same way.
Hopefully, somebody else familiar with the compiler could give you
more concrete information about whether this is actually feasible...
Just thought I'd toss it out there.
- Shane
Return to the
comp.compilers page.
Search the
comp.compilers archives again.