Is there a 64-bit version of the CC compiler itself?

Hello,

We have a large (~4k lines) .cpp file which brings in a very large number of templates. On our v440 we see the compiler using more and more memory until it reaches 2Gb when it falls over with the message

"Insufficient memory is available for compilation to continue."

sun02% uname -a

SunOS sun02 5.8 Generic_117350-05 sun4u sparc SUNW,Sun-Fire-V440

sun02% CC -V

CC: Sun C++ 5.8 Patch 121017-02 2006/04/19

sun02% file /opt/v11/SUNWspro/bin/CC

/opt/v11/SUNWspro/bin/CC:ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, stripped

Is there a 64-bit version of the compiler which could handle code of this size? The large .cpp will be very difficult to split up.

Interestingly, on our Xeon-based box running Solaris 10, the compilation is very very slow, but does complete OK.

sun03% uname -a

SunOS sun03 5.10 Generic_118855-33 i86pc i386 i86pc

sun03% CC -V

CC: Sun C++ 5.8 Patch 121018-10 2007/02/21

sun03% file /opt/v11/SUNWspro/bin/CC

/opt/v11/SUNWspro/bin/CC:ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, stripped

Thanks

-- Steve

[1205 byte] By [sjgilbertza] at [2007-11-27 10:32:43]
# 1

Unfortunately, there is no 64-bit version of the compiler.

Some things you can try:

Reduce the size of individual compilation units (the total amount of source code seen by the compiler in one compilation run).

Re-factor very large functions into smaller ones. During optimized compilation, the memory usage and compilation time is super-linear in the number of basic blocks in one function.

Reduce the optimization level.

If you have a support contract with Sun, please file a bug report via your support channel. If not, please file a bug report at bugs.sun.com.

clamage45a at 2007-7-28 18:18:23 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Bug 6580955 has been filed, and should be visible at bug.sun.com in a day or so.

clamage45a at 2007-7-28 18:18:23 > top of Java-index,Development Tools,Solaris and Linux Development Tools...