gcc for dual core processor

Gerald Dachs ubuntu at dachsweb.de
Thu Jan 24 09:32:23 UTC 2008


Quoting Alain Muls <alain.muls at telenet.be>:

> Hi,
>
> I do a lot of gcc compiling. I have a dual core system and by observing
> the CPU usage I think only one of bot cores is working at each time
> (total CPU load is about 52%). I read somewhere that by specifying some
> environmental variables, you can use simultaneously both cores. I lost
> sight of this reference and can no longer find it by googleing for it.
> Does anyone know how to adjust my settings?

I have never heared that the gcc can make use of more than one core, but make
can. With the option -j 2 you can use both of your cores, but I don't know an
environment variable that will do this. There was one for building rpm  
packages,
but I don't know it for debian packages.

Gerald


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





More information about the ubuntu-users mailing list