public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc needs extreme compiling time for jaguar-cts-includes  [WatchDog checked]
@ 2001-06-28  9:57 silvio.matthes
  2001-06-29 20:22 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: silvio.matthes @ 2001-06-28  9:57 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]


Hallo,

maybe that's a bit offtopic,
but I don't know where to send to otherwise (suggestions are welcome...)

I'm trying to compile an external client
for sybase's Jaguar CTS on a sun solaris 2.7 machine with gcc (2.95.3).

My Problem is, it compiles way too long and needs plenty of memory.
As soon as I add jaguar.hpp (thats a main includefile of Jaguar CTS API)
to the includes it needs 30minutes (its a E450 with 1GB of RAM) and needs
almost 1GB of memory.

The mentioned header includes several other header-files, altogether they
are about 3Megs of size.
Ok, that's a mass, but for comparison, on a windoze-machine with MSVC that
compiles in 1-2 minutes!

And that's only the headers. If I use the functions the headers define,
every call
needs memory at compiletime and I end up with a client of about 1700 lines,
which doesn't compile because after 2 hours a process called cc1plus needs
1.7Gig of Ram.
At this stage the system has not enough ram and probably kills the process
so that gcc says:
(...).h:1863: Internal compiler error.
(...).h:1863: Please submit a full bug report.
(...).h:1863: See <URL: http://www.gnu.org/software/gcc/bugs.html > for
instructions


These are my settings of compiler and linker (cut from makefile):

gcc -ggdb -O -w -I(...includes) -DDEBUG -D_REENTRANT -DJAG_NO_NAMESPACE -c
testclient.cpp -o testclient.o
/usr/local/bin/gcc -Xlinker -zmuldefs testclient.o -L(...libdirs) -ljcc
-lpthread -lnsl  -o testclient

I'll attach an example of the headers.


My Questions are:
- How could I prevent gcc from compiling this long, e.g. with some
compiler-switches?
- Does anyone have experiences with gcc 3.0? Could it solve the problem?

Thank you in advance,

Kind Regards,

Silvio Matthes
(See attached file: jagheadr.zip)
=?us-ascii?Q?jagheadr.zip?=


[-- Attachment #2: jagheadr.zip --]
[-- Type: application/zip, Size: 4800 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc needs extreme compiling time for jaguar-cts-includes  [WatchDog checked]
  2001-06-28  9:57 gcc needs extreme compiling time for jaguar-cts-includes [WatchDog checked] silvio.matthes
@ 2001-06-29 20:22 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-06-29 20:22 UTC (permalink / raw)
  To: silvio.matthes; +Cc: gcc-help

On Jun 28, 2001, silvio.matthes@xcom.de wrote:

> for sybase's Jaguar CTS on a sun solaris 2.7 machine with gcc (2.95.3).

> My Problem is, it compiles way too long and needs plenty of memory.

Try GCC 3.0.  A lot of work has been done to reduce the amount of
memory it takes.

> The mentioned header includes several other header-files, altogether they
> are about 3Megs of size.

-fno-implicit-templates might help too, but then, you may have to
instantiate templates explicitly.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-29 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-28  9:57 gcc needs extreme compiling time for jaguar-cts-includes [WatchDog checked] silvio.matthes
2001-06-29 20:22 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).