* Alpha compilation questions
@ 2001-05-18 11:03 S VDE
2001-05-18 11:15 ` Helge Kreutzmann
0 siblings, 1 reply; 4+ messages in thread
From: S VDE @ 2001-05-18 11:03 UTC (permalink / raw)
To: axp-list
Hi all,
Some questions on compiling. I don't know exactly what to install (Compaq
compilers or the GNU compilers) and I don't want to ruin the installation
since it is running fine. However I want to install a newer kernel (now I
just installed a native RedHat 6.2 with kernel 2.2.14-6.0) but I would like
to know how to compile it.
What do I need to do to compile software in the best possible way? If I
install Compaq compilers, will the basic Makefiles distributed with source
tarnalls still work, or is there an 'easy' way to adapt it.
Also, will Compaq compilers replace existing ones or just add new ones.
Finally, I have one practical question: I tried to compile vnc, but it
failed with an error stating it is not possible to use some flags at the
same time (-o and -s I think it was). So I want to install a newer gcc. But
to do that I first want to know whether it would be better to install Compaq
compilers. Or would the problem lie somewhere else?
A lot of questions but actually I would like to know more about Alpha
specific compiling and optimalisation, so any inputs would be highly
appreciated...
Regards
Sam
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha compilation questions
2001-05-18 11:03 S VDE
@ 2001-05-18 11:15 ` Helge Kreutzmann
0 siblings, 0 replies; 4+ messages in thread
From: Helge Kreutzmann @ 2001-05-18 11:15 UTC (permalink / raw)
To: axp-list
Hello !
On Fri, May 18, 2001 at 01:03:13PM +0200, S VDE wrote:
> Hi all,
>
> Some questions on compiling. I don't know exactly what to install (Compaq
> compilers or the GNU compilers) and I don't want to ruin the installation
> since it is running fine. However I want to install a newer kernel (now I
> just installed a native RedHat 6.2 with kernel 2.2.14-6.0) but I would like
> to know how to compile it.
Just as on any other platform. The only difference is that you need to
do
make boot
instead of make zImage or make bzImage
If you are new to compiling kernels look at
http://www.alphalinux.org/docs/kernel.shtml
The kernel is one of the few pices of code which MUST be compiled
using gcc as it uses extensions not present in any other C compiler.
> What do I need to do to compile software in the best possible way? If I
> install Compaq compilers, will the basic Makefiles distributed with source
> tarnalls still work, or is there an 'easy' way to adapt it.
This depends. The compaq compilers have different names than the gcc
ones so you might have to adapt makefile. If your programm uses the
configure mechanism however you can just say
env CC=ccc ./configure
to switch to the compaq c-Compiler (CXX for the c++ compiler)
> Also, will Compaq compilers replace existing ones or just add new ones.
Simply add another set of compilers so you can switch anytime.
> Finally, I have one practical question: I tried to compile vnc, but it
> failed with an error stating it is not possible to use some flags at the
> same time (-o and -s I think it was). So I want to install a newer gcc. But
> to do that I first want to know whether it would be better to install Compaq
> compilers. Or would the problem lie somewhere else?
Most likly a mistake in the makefiles. Did you check the docs of vnc ?
> A lot of questions but actually I would like to know more about Alpha
> specific compiling and optimalisation, so any inputs would be highly
> appreciated...
If you need floating point optimization then the compaq compilers are
usually better. The C++Implementation is also more mature then the gcc
one. Check out www.alphalinux.org for many pointers and comparisons
and don't forget to read the man pages for the compaq compilers for
the proper options for your code (i.e. -arch host and such).
Greetings
Helge
--
Helge Kreutzmann, Dipl.-Phys. kreutzm@itp.uni-hannover.de
For gpg-key: finger kreutzm@rigel.itp.uni-hannover.de
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.freepatents.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha compilation questions
@ 2001-05-18 14:20 S VDE
2001-05-18 15:30 ` Helge Kreutzmann
0 siblings, 1 reply; 4+ messages in thread
From: S VDE @ 2001-05-18 14:20 UTC (permalink / raw)
To: axp-list
Helge,
First of all thanks for your help.
>
>env CC=ccc ./configure
>
>to switch to the compaq c-Compiler (CXX for the c++ compiler)
>
This sounds very useful, I will try that one out.
>
>Most likly a mistake in the makefiles. Did you check the docs of vnc ?
>
Yeah I did but I am quite new at this and it is still very confusing. I do
not now enough about the scripting involved really so I need to learn. I did
not test the compiling method on Intel.
This source code does not have a configure script. I can adapt the Makefile
to use ccc but then I probably need to check all parameters used (or are
they the same for ccc and gcc)...
I will try it out.
Thanks again,
Sam
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha compilation questions
2001-05-18 14:20 Alpha compilation questions S VDE
@ 2001-05-18 15:30 ` Helge Kreutzmann
0 siblings, 0 replies; 4+ messages in thread
From: Helge Kreutzmann @ 2001-05-18 15:30 UTC (permalink / raw)
To: axp-list
Sam,
On Fri, May 18, 2001 at 04:20:22PM +0200, S VDE wrote:
> This source code does not have a configure script. I can adapt the Makefile
> to use ccc but then I probably need to check all parameters used (or are
> they the same for ccc and gcc)...
The ccc is mostly call compatible to the gcc. So most likly you will
only modify the optimization (e.g. -arch host -tune host or different
level of -On).
Regards
Helge
--
Helge Kreutzmann, Dipl.-Phys. kreutzm@itp.uni-hannover.de
For gpg-key: finger kreutzm@rigel.itp.uni-hannover.de
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.freepatents.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-05-18 15:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-18 14:20 Alpha compilation questions S VDE
2001-05-18 15:30 ` Helge Kreutzmann
-- strict thread matches above, loose matches on Subject: below --
2001-05-18 11:03 S VDE
2001-05-18 11:15 ` Helge Kreutzmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox