473,513 Members | 13,099 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
8 1763
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
of course

Apr 18 '06 #3
vi*****@gmail.com wrote:
of course


yes
Apr 18 '06 #4
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
vi*****@gmail.com wrote:
of course


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

Regards,
Peter Jansson
Apr 18 '06 #6

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3890
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
9
6647
by: PG | last post by:
Hi gurus, I have AIX visual age C++ compiler version 5.0.2.3. I have a simple hello world program that gives compilation errors. Any help will be appreciated. Thanks PG ***test.cpp**** ...
0
1090
by: Adriano Coser | last post by:
Hello. I'm trying to compile a DLL with Visual C++ .NET 2003 and I'm facing an error declaring template variables with prototypes. I don´t know if I'll be able to explain my scenario, but...
6
3765
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
6
9777
by: alban | last post by:
Hello I have got some problems of compilation on a AIX IBM, I use the XLC compilator (And I can't install another one). I try to compile code Pro*c ".pc" (oracle), I need do a pre-compilation...
28
2608
by: richardlang | last post by:
Anyone out there ever come across a preprocessor macro that compares an argument value against the predefined __DATE__ macro in order to control conditional compilation based on date. Something...
6
1439
by: pleexed | last post by:
hello, this is my first post in a newsgroup, i hope i do everything right :) first of all, i am sure there have been a lot of "are templates slow?" questions around, but i think what i would...
5
2926
by: David Portabella | last post by:
Hello, I have the following template class: ++++++++++++++++++++++ template <class Valueclass Test { public: void f() { if (typeid(Value) == typeid(string)) cout << "Value is a string" <<...
1
2646
by: Alex Vinokur | last post by:
Hi, I have compilation problem on SUN CC compiler with template while using option -m64 (64-bit addressing model). No problem while using option -m32 (32-bit addressing model) $ CC -V CC:...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.