Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 1998 17:46:12 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        stable@FreeBSD.ORG
Subject:   extremely slow cc1plus
Message-ID:  <199811200146.RAA27525@silvia.hip.berkeley.edu>

next in thread | raw e-mail | index | archive | help
Hi,

I've been compiling some stuff on a recent -stable (the package
building machine) and just noticed this:

===
  PID USERNAME PRI NICE SIZE    RES STATE    TIME   WCPU    CPU COMMAND
29928 root     96   0 12772K 12108K RUN      8:07 56.80% 56.80% cc1plus
 :
===

This is the command line:

===
g++ -O2 -DDEBUG -DAMULET2_CONVERSION -I/usr/ports/devel/amulet/work/amulet/include -I/usr/X11R6/include -Wall  -DGCC -DMEMORY -DDEFAULT_AMULET_DIR=\"/usr/X11R6/share/amulet\" -fpic -c /usr/ports/devel/amulet/work/amulet/src/widgets/testwidgets.cc -o /usr/ports/devel/amulet/work/amulet/src/widgets/testwidgets.o
===

and this is the size of the source file.

===
## wc devel/amulet/work/amulet/src/widgets/testwidgets.cc 
    1922    6190   63054 devel/amulet/work/amulet/src/widgets/testwidgets.cc
===

I guess it could be including a thousand headers or something, but is
g++ supposed to take *eight* CPU minutes (and counting) to compile a
2,000 line source file?

Satoshi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811200146.RAA27525>