This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ option to generate code after template instantiation
- From: "Digvijoy Chatterjee" <chatterjee dot digvijoy at gmail dot com>
- To: gcc-help at gnu dot org
- Date: Thu, 29 Mar 2007 19:50:06 -0400
- Subject: g++ option to generate code after template instantiation
when i say std::vector<int> is there an option to g++ generate
template instantiated source ,before converting C++ to assembly which
could show me how the vector looks.... when the appropriate parameters
are replaced
template<int, typename _Alloc>
struct _Vector_base
{
struct _Vector_impl
: public _Alloc {
int* _M_start;
int* _M_finish;.............
This is a simple example , but if there is such an option this could
be really helpful ,to understand complex template instantiations.
Thx
Digz