On Wednesday March 1 2017 09:05, in comp.os.linux.development.apps,
"***@totalbb.net.tw" <***@totalbb.net.tw> wrote:
[Text order altered]
Post by w***@totalbb.net.tw-----------------
$g++ --version
g++ (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)
...
$time g++ -c -Wall -pthread -fPIC dsmain.cpp
real 6m10.623s
user 6m8.142s
sys 0m0.099s
Why did the compilation took so long in user time?
You have not provided enough information to allow anyone to give you a
comprehensive answer to your question.
I can give you a generic answer to your question, though.
Your compilation tool a long time because the compiler was doing lots of
complicated things that didn't require any system calls.
Process time is split into "the length of time the process waited while the OS
serviced a process-initiated system call, such as open() or read()" and "the
rest of the time that the process took to execute". Your "system call time"
(or "sys") is 0 minutes, 0.099 seconds, while your "everything else time" (or
"user") is 6 minutes, 8.142 seconds. That's all we can tell from the
information you supplied.
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request