Operating System - HP-UX
1834007 Members
1936 Online
110063 Solutions
New Discussion

Re: gcc on multi-processor system

 
Alex Macdonald
Advisor

gcc on multi-processor system

Is there any way to enable multi-threading with gcc on HP-UX? I've got gcc-3.3.2 from the HP-UX depot. Thanks in advance.
3 REPLIES 3
Harri Pasanen_1
Advisor

Re: gcc on multi-processor system

It is enabled by default, if gcc was configured that way. Type "gcc -v" to see how it was configured. If you see something like --enable-threads=posix in the output, you should be all set.
Alex Macdonald
Advisor

Re: gcc on multi-processor system

This is what I get from gcc -v:

Reading specs from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure
Thread model: single
gcc version 3.3.2
Harri Pasanen_1
Advisor

Re: gcc on multi-processor system

Thread model: single implies that it is not built for threading. I have built my own gcc, configured as follows:bash-2.05a$ /opt/gcc33/bin/gcc -vReading specs from /opt/gcc33/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.3/specsConfigured with:../gcc/configure --prefix=/opt/gcc33 -with-gnu-as --with-as=/usr/gnu/bin/as --enable-threads=posix --enable-languages=c,c++Thread model: posix Btw. how does one format messages for these forums? It keeps stripping all the empty lines and white space for me...