By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

Huge compilation time of template based sources (AIX 5.2, VA C++ 6 compiler)

P: n/a
Hi,
I have cpp file which consist nested templates. Compilation time
without optimization is 1-2 minutes, with -O2 turned on more then 5
hours. :( Could anybody help with that problem?
AIX 5.2, Visual Age C++ 6 compiler

#include <pair>
using namespace std;
// value
typedef
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
int






internal_value;

Apr 18 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
vi*****@gmail.com wrote:
I have cpp file which consist nested templates. Compilation time
without optimization is 1-2 minutes, with -O2 turned on more then 5
hours. :( Could anybody help with that problem?
AIX 5.2, Visual Age C++ 6 compiler

[..nested templates..]


Have you tried contacting their Technical Support?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 18 '06 #2

P: n/a
of course

Apr 18 '06 #3

P: n/a
vi*****@gmail.com wrote:
of course


yes
Apr 18 '06 #4

P: n/a
vi*****@gmail.com wrote:
of course


Really?

Brian

--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header.
Apr 18 '06 #5

P: n/a
vi*****@gmail.com wrote:
of course


So, what did their Technical Support tell you about this?

Regards,
Peter Jansson
Apr 18 '06 #6

P: n/a

vi*****@gmail.com wrote:
Hi,
I have cpp file which consist nested templates. Compilation time
without optimization is 1-2 minutes, with -O2 turned on more then 5
hours. :( Could anybody help with that problem?
AIX 5.2, Visual Age C++ 6 compiler

#include <pair>
using namespace std;
// value
typedef
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
int
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

internal_value;


what do you use this ugly beast for?

Apr 20 '06 #7

P: n/a
Fei Liu wrote:
vi*****@gmail.com wrote:
Hi,
I have cpp file which consist nested templates. Compilation time
without optimization is 1-2 minutes, with -O2 turned on more then 5
hours. :( Could anybody help with that problem?
AIX 5.2, Visual Age C++ 6 compiler

#include <pair>
using namespace std;
// value
typedef
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
int
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

internal_value;


what do you use this ugly beast for?

Too bad you can't compile on a DOS machine with huge ram drives. I have
tried things, not quite this big, but the old stuff sure beats the new
Windows junk. Even Linuxis getting a lot of bloat. I miss the good old
days but not the slow computers with only 16 MB of memory.
Bill Baka
Apr 21 '06 #8

P: n/a
vi*****@gmail.com wrote:
Hi,
I have cpp file which consist nested templates. Compilation time
without optimization is 1-2 minutes, with -O2 turned on more then 5
hours. :( Could anybody help with that problem?
AIX 5.2, Visual Age C++ 6 compiler

#include <pair>
using namespace std;
// value
typedef
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
< .... std::pair
<
int,
int
> .... >
>

internal_value;


You might swith to boost::tuple or std::tri::tuple for such a beast, or even
look at boost::mpl for alternatives that have been architected with compile
efficiency in mind.

Jeff Flinn
Apr 21 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.