Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Compaq Compiler
@ 2000-08-07 12:04 David Webb
  2000-08-07 12:25 ` Olle Hansson
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: David Webb @ 2000-08-07 12:04 UTC (permalink / raw)
  To: axp-list

Hi,

I'm running RH6.2 on a pc164lx. I wanted to try
using the Compaq compiler to compile the
2.2.16 kernel that I downloaded from
alphalinux.org. I followed the instructions at
http://www.iol.edu/linux/cpp/started.html
to install the folowing:

libots-2.2.7-2.alpha.rpm
cpml_ev5-5.1.0-2.alpha.rpm
compaq_rh62_binutils-2.9.5.0.22-8.alpha.rpm
compaq_rh62_gdb-4.18-12.alpha.rpm
ladebug-4.0.62-16.alpha.rpm
ccc-6.2.9.504-2.alpha.rpm
cxx-6.3.9.5-1.alpha.rpm

The /usr/doc/ccc-6.2.9.504/README.txt file says:
"...a makefile that works on Linux Alpha using the
gcc compiler could be used to build the same
application with the ccc compiler by changing only the
compiler invocation command from gcc (or cc) to ccc."

I'm afraid I don't know much about compilers or make,
and I haven't been able to find the answers to two
questions I have.

Will changing "gcc" to "ccc" in the two following
lines in /usr/src/linux-2.2.16/Makefile invoke
the ccc compiler instead of the gcc compiler?

"HOSTCC	=gcc"

"CC	=$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)"

A little later the same README.txt file says:
"If you can successfully build your application with ccc,
you might want to try making it run faster. ...
A good first attempt would be just to add -fast to the
beginning of your compiler options."

Will "make" pass options such as "- fast" to the
compiler ( make boot - fast)?

Any suggestions will be appreciated.
Thanks in advance.

David






HotBot - Search smarter.
http://www.hotbot.com




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

* Re: Compaq Compiler
  2000-08-07 12:04 Compaq Compiler David Webb
@ 2000-08-07 12:25 ` Olle Hansson
  2000-08-07 14:24 ` Michal Jaegermann
  2000-08-07 14:28 ` Andreas Trottmann
  2 siblings, 0 replies; 8+ messages in thread
From: Olle Hansson @ 2000-08-07 12:25 UTC (permalink / raw)
  To: axp-list

I think you can compile the linux kernel with compaq ccc.

When i use compaq ccc i run
export CC="ccc"
export CFLAGS="-g3 -fast"
export CXX="cxx"
export CXXFLAGS="-g3 -fast"

and then the configure script in the source directory for ex licq-0.85

and now is the default compiller ccc insted for gcc

/Olle Hansson

* David Webb (dvdwb@hotbot.com) wrote:
> Hi,
> 
> I'm running RH6.2 on a pc164lx. I wanted to try
> using the Compaq compiler to compile the
> 2.2.16 kernel that I downloaded from
> alphalinux.org. I followed the instructions at
> http://www.iol.edu/linux/cpp/started.html
> to install the folowing:
> 
> libots-2.2.7-2.alpha.rpm
> cpml_ev5-5.1.0-2.alpha.rpm
> compaq_rh62_binutils-2.9.5.0.22-8.alpha.rpm
> compaq_rh62_gdb-4.18-12.alpha.rpm
> ladebug-4.0.62-16.alpha.rpm
> ccc-6.2.9.504-2.alpha.rpm
> cxx-6.3.9.5-1.alpha.rpm
> 
> The /usr/doc/ccc-6.2.9.504/README.txt file says:
> "...a makefile that works on Linux Alpha using the
> gcc compiler could be used to build the same
> application with the ccc compiler by changing only the
> compiler invocation command from gcc (or cc) to ccc."
> 
> I'm afraid I don't know much about compilers or make,
> and I haven't been able to find the answers to two
> questions I have.
> 
> Will changing "gcc" to "ccc" in the two following
> lines in /usr/src/linux-2.2.16/Makefile invoke
> the ccc compiler instead of the gcc compiler?
> 
> "HOSTCC	=gcc"
> 
> "CC	=$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)"
> 
> A little later the same README.txt file says:
> "If you can successfully build your application with ccc,
> you might want to try making it run faster. ...
> A good first attempt would be just to add -fast to the
> beginning of your compiler options."
> 
> Will "make" pass options such as "- fast" to the
> compiler ( make boot - fast)?
> 
> Any suggestions will be appreciated.
> Thanks in advance.
> 
> David
> 
> 
> 
> 
> 
> 
> HotBot - Search smarter.
> http://www.hotbot.com
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




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

* Re: Compaq Compiler
  2000-08-07 12:04 Compaq Compiler David Webb
  2000-08-07 12:25 ` Olle Hansson
@ 2000-08-07 14:24 ` Michal Jaegermann
  2000-08-07 14:28 ` Andreas Trottmann
  2 siblings, 0 replies; 8+ messages in thread
From: Michal Jaegermann @ 2000-08-07 14:24 UTC (permalink / raw)
  To: axp-list

David Webb wrote:
> 
> I'm running RH6.2 on a pc164lx. I wanted to try
> using the Compaq compiler to compile the
> 2.2.16 kernel

Linux is not written in Standard C, never was, and nobody ever claimed
that this is the case.  If you peek into kernel sources you will find
out very quickly that they heavily depend on a C dialect and constructs
which are gcc specific.  You cannot even drop an optimization and
correctly compile a kernel.

  Michal




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

* Re: Compaq Compiler
  2000-08-07 12:04 Compaq Compiler David Webb
  2000-08-07 12:25 ` Olle Hansson
  2000-08-07 14:24 ` Michal Jaegermann
@ 2000-08-07 14:28 ` Andreas Trottmann
  2000-08-07 16:12   ` Routing Crash Darren Breeze
  2000-08-07 17:36   ` Compaq Compiler David Huggins-Daines
  2 siblings, 2 replies; 8+ messages in thread
From: Andreas Trottmann @ 2000-08-07 14:28 UTC (permalink / raw)
  To: axp-list

On Mon, Aug 07, 2000 at 05:04:14AM -0700, David Webb wrote:

> I'm running RH6.2 on a pc164lx. I wanted to try
> using the Compaq compiler to compile the
> 2.2.16 kernel that I downloaded from
> alphalinux.org. 

I'm afraid, that's not a good idea. The Linux kernel can, at the moment,
only be compiled by GCC. But that's not as bad as it might seem -- the
linux kernel does not contain much performance-intensive code, so
optimizing the linux kernel would not result in a big speedup of your
system anyway.

Try ccc on some CPU-intensive application program (scientific programs
are usually best for this...), and you will have more success.

As for the specific instructions on how to use ccc instead of GCC:

> Will changing "gcc" to "ccc" in the two following
> lines in /usr/src/linux-2.2.16/Makefile invoke
> the ccc compiler instead of the gcc compiler?
> 
> "HOSTCC	=gcc"
> 
> "CC	=$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)"

Yes, it would. Other programs could probably work in a similar way.

> Will "make" pass options such as "- fast" to the
> compiler ( make boot - fast)?

No. You have to change the CFLAGS variable for that.

-- 
Andreas Trottmann <andreas.trottmann@werft22.com>




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

* Routing Crash
  2000-08-07 14:28 ` Andreas Trottmann
@ 2000-08-07 16:12   ` Darren Breeze
  2000-08-07 17:36   ` Compaq Compiler David Huggins-Daines
  1 sibling, 0 replies; 8+ messages in thread
From: Darren Breeze @ 2000-08-07 16:12 UTC (permalink / raw)
  To: axp-list

Hi

I have a PC164 running Redhat 1.6 (2.2.14) with 3 network cards, one to the
office,
one to a fixed IP internet leased line and one to a cable modem (DHCP).

I installed the cable modem last week, and for the first time, the Alpha
crashed,
the first time in over 14 months.

I run IP chains and IP policy routing to allow the office to connect to the
net via
the cable modem, but still allowing the alpha to maintain it's permanent ID
on the
net via the leased line.

The complete lockup occurs when I stream packets via the alpha from the
Cable Modem
to any machine in the office. Like listening to a web radio station (JJJ in
Australia @ 20kbs)

If there is no prolonged traffic the machine just keeps going..

Any clues ??

Darren Breeze
Hong Kong

http://www.alteredimages.com.hk





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

* Re: Compaq Compiler
  2000-08-07 14:28 ` Andreas Trottmann
  2000-08-07 16:12   ` Routing Crash Darren Breeze
@ 2000-08-07 17:36   ` David Huggins-Daines
  2000-08-08  6:35     ` FP on Linux/Alpha (Re: Compaq Compiler) bryan
  1 sibling, 1 reply; 8+ messages in thread
From: David Huggins-Daines @ 2000-08-07 17:36 UTC (permalink / raw)
  To: axp-list

Andreas Trottmann <andreas.trottmann@werft22.com> writes:

> I'm afraid, that's not a good idea. The Linux kernel can, at the moment,
> only be compiled by GCC. But that's not as bad as it might seem -- the
> linux kernel does not contain much performance-intensive code, so
> optimizing the linux kernel would not result in a big speedup of your
> system anyway.

Almost all the really performance intensive stuff in the kernel is in
hand-coded assembly anyway (in arch/alpha/lib/).  Anyway, the kernel is
all integer math, which GCC does nearly as well as CCC.

> Try ccc on some CPU-intensive application program (scientific programs
> are usually best for this...), and you will have more success.

Right, on floating point intensive stuff it will definitely win,
though a lot of the benefit probably comes from the highly optimized
(in assembly code) CPML library.

-- 
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.




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

* FP on Linux/Alpha (Re: Compaq Compiler)
  2000-08-07 17:36   ` Compaq Compiler David Huggins-Daines
@ 2000-08-08  6:35     ` bryan
  2000-08-08 21:35       ` Ross A Knepper
  0 siblings, 1 reply; 8+ messages in thread
From: bryan @ 2000-08-08  6:35 UTC (permalink / raw)
  To: axp-list

David Huggins-Daines wrote in <87zompynw7.fsf@linuxcare.com>:
> 
> > Try ccc on some CPU-intensive application program (scientific programs
> > are usually best for this...), and you will have more success.
> 
> Right, on floating point intensive stuff it will definitely win,
> though a lot of the benefit probably comes from the highly optimized
> (in assembly code) CPML library.

This brings up another question -- What does the 'make config'
help mean when it says that the kernel has to "finish" floating-
point arithmetic?

--
Bryan Medsker
bryan@ak.net




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

* Re: FP on Linux/Alpha (Re: Compaq Compiler)
  2000-08-08  6:35     ` FP on Linux/Alpha (Re: Compaq Compiler) bryan
@ 2000-08-08 21:35       ` Ross A Knepper
  0 siblings, 0 replies; 8+ messages in thread
From: Ross A Knepper @ 2000-08-08 21:35 UTC (permalink / raw)
  To: axp-list

On Mon, 7 Aug 2000 bryan@ak.net wrote:
> This brings up another question -- What does the 'make config'
> help mean when it says that the kernel has to "finish" floating-
> point arithmetic?

the alpha hardware has an incomplete implementation of the IEEE 754 spec
for floating point arithmetic.  in the normal case, the alpha hardware
will be sufficient.  they cut a few corners in chip design by not
implementing certain cases that result in Inf or NaN (overflow, underflow,
and the like).  to simplify the chip design (hence allowing it to be
clocked higher), an instruction found to be producing a non-normal result
is trapped to the OS for completion.  therefore, the linux kernel needs to
know what to do when it receives a trap for a weird FP instruction.

of course, it's extremely slow to trap into the OS.  the reason that this
tradeoff is acceptable is that for the majority of applications, you never
really want to encounter Inf or NaN anyway, so you never trap to the
OS.  

incidentally, FP instructions that potentially cause traps have two
different versions -- one that can trap for completion and one that just
gives up if it can't do the math in hardware.  this is what the -mieee
flag to gcc controls.

 -ross




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

end of thread, other threads:[~2000-08-08 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-07 12:04 Compaq Compiler David Webb
2000-08-07 12:25 ` Olle Hansson
2000-08-07 14:24 ` Michal Jaegermann
2000-08-07 14:28 ` Andreas Trottmann
2000-08-07 16:12   ` Routing Crash Darren Breeze
2000-08-07 17:36   ` Compaq Compiler David Huggins-Daines
2000-08-08  6:35     ` FP on Linux/Alpha (Re: Compaq Compiler) bryan
2000-08-08 21:35       ` Ross A Knepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox