* Programming on an Alpha (Redhat of course...)
@ 1998-05-03 0:00 Jeremy Sieminski
1998-05-03 3:37 ` Michal Jaegermann
1998-05-03 11:52 ` g77 on Alphas Ingo Mueller-Wodarg
0 siblings, 2 replies; 6+ messages in thread
From: Jeremy Sieminski @ 1998-05-03 0:00 UTC (permalink / raw)
To: axp-list
Hello,
I have noticed as I try to compile programs on my Alpha that they
regularly get errors but on my Intel box they don't. Could someone point me
toward some resources about programming on the Alpha. I am an adequate C++
programmer and I tend to do well on my Intel box. I'd like to be able to at
least correct the problems compiling programs on the Alpha. Thanks for any
tips you can throw my way...
-Jeremy Sieminski
---------------------------------------------------------------------\
Jeremy Sieminski Space for Rent.... \
jps@nodezero.com /
---------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Programming on an Alpha (Redhat of course...)
1998-05-03 0:00 Programming on an Alpha (Redhat of course...) Jeremy Sieminski
@ 1998-05-03 3:37 ` Michal Jaegermann
1998-05-03 3:49 ` Brian E.W. Wood
1998-05-03 11:52 ` g77 on Alphas Ingo Mueller-Wodarg
1 sibling, 1 reply; 6+ messages in thread
From: Michal Jaegermann @ 1998-05-03 3:37 UTC (permalink / raw)
To: axp-list; +Cc: jps
>
> I have noticed as I try to compile programs on my Alpha that they
> regularly get errors but on my Intel box they don't.
Most likely these get errors because they have bugs. Faulty assumptions
that int can hold a pointer, for example, are masked on Intel due
to relative sizes of these types on Intel but they bite on Alpha.
As C defaults undeclared (or arguments to functions without prototypes)
this sometimes may be hard to spot. Misaligned stack due to
carelessnes with types is also not unheard of.
> Could someone point me
> toward some resources about programming on the Alpha.
K&R, second edition, is recommended - and pay attention to what authors
have to say. Using -Wall with gcc, and even stricter available checks,
also helps a lot.
--mj
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Programming on an Alpha (Redhat of course...)
1998-05-03 3:37 ` Michal Jaegermann
@ 1998-05-03 3:49 ` Brian E.W. Wood
0 siblings, 0 replies; 6+ messages in thread
From: Brian E.W. Wood @ 1998-05-03 3:49 UTC (permalink / raw)
To: axp-list
On 03-May-98 Michal Jaegermann wrote:
>>
>> I have noticed as I try to compile programs on my Alpha that they
>> regularly get errors but on my Intel box they don't.
>
> Most likely these get errors because they have bugs. Faulty assumptions
> that int can hold a pointer, for example, are masked on Intel due
> to relative sizes of these types on Intel but they bite on Alpha.
> As C defaults undeclared (or arguments to functions without prototypes)
> this sometimes may be hard to spot. Misaligned stack due to
> carelessnes with types is also not unheard of.
>
>> Could someone point me
>> toward some resources about programming on the Alpha.
>
> K&R, second edition, is recommended - and pay attention to what authors
> have to say. Using -Wall with gcc, and even stricter available checks,
> also helps a lot.
I tried to reply to the original author of this thread but the message bounced
with user unknown.
The comments above are quite valid, but I noticed that the original message
referred to C++ code, which is pretty broken on RH 5.0/Alpha with gcc/g++.
I'd suggest checking out egcs (latest version 1.0.2), which seems to do a lot
better with c++ code. There are egcs RPMs at
ftp://ftp.redhat.com/pub/contrib/hurricane
Compiling yourself from source is of course better, the compiler bootstraps and
compiles itself.
egcs compiled all of KDE beta4 for me, which is a pretty good c++ workout.
Just my $0.02.
---
Brian E.W. Wood beww@intac.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* g77 on Alphas
1998-05-03 0:00 Programming on an Alpha (Redhat of course...) Jeremy Sieminski
1998-05-03 3:37 ` Michal Jaegermann
@ 1998-05-03 11:52 ` Ingo Mueller-Wodarg
1998-05-03 18:34 ` Robert Williams
1998-05-04 16:30 ` Ingo Mueller-Wodarg
1 sibling, 2 replies; 6+ messages in thread
From: Ingo Mueller-Wodarg @ 1998-05-03 11:52 UTC (permalink / raw)
To: axp-list
I am anxiously trying to get g77 installed on an Alpha system, but it
doesn't work. The installation halts at one stage because it tries to
execute code written for Intels. However, I do use the latest version of
the required packages, as suggested by many people previously on this
mailing list and in various Readme's.
Is there a quick and dirty way to get it installed? I use Red Hat Linux
version 5.
Thanks in advance!!
Ingo
***********************************************
Dr.Ingo Mueller-Wodarg
Atmospheric Physics Laboratory
Department of Physics & Astronomy
University College London
London W1P 7PP/ U.K.
ingo@apg.ph.ucl.ac.uk
Tel: +44-(0)171-380 7163
Fax: +44-(0)171-380 7161
http://cat.apg.ph.ucl.ac.uk
***********************************************
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: g77 on Alphas
1998-05-03 11:52 ` g77 on Alphas Ingo Mueller-Wodarg
@ 1998-05-03 18:34 ` Robert Williams
1998-05-04 16:30 ` Ingo Mueller-Wodarg
1 sibling, 0 replies; 6+ messages in thread
From: Robert Williams @ 1998-05-03 18:34 UTC (permalink / raw)
To: axp-list
Ingo Mueller-Wodarg wrote:
> I am anxiously trying to get g77 installed on an Alpha system, but it
> doesn't work.
Install egcs which includes g77 and mostly works.
See http://www.cygnus.com/egcs/
Get a stable version. Don't use the snapshots.
--
Bob Williams, http://bob.usuf2.usuhs.mil/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: g77 on Alphas
1998-05-03 11:52 ` g77 on Alphas Ingo Mueller-Wodarg
1998-05-03 18:34 ` Robert Williams
@ 1998-05-04 16:30 ` Ingo Mueller-Wodarg
1 sibling, 0 replies; 6+ messages in thread
From: Ingo Mueller-Wodarg @ 1998-05-04 16:30 UTC (permalink / raw)
To: axp-list
THANKS TO ALL WHO REPLIED TO MY g77 QUERIE!!
I have downloaded the latest egcs (version 1.0.2), and installed it. I
use the Digital PC164 board, so I installed using
./configure alpha-dg-linux-gnu
Now, that all went without any error messages, but when I now try to
compile something it gives me error messages saying, eg,
g77: installation problem, cannot exec `f771': No such file or directory
Any idea what I did wrong? The routine I compile is very simple and works
perfectly on Fortran 77, compiled on other systems.
THANKS!!
Ingo
***********************************************
Dr.Ingo Mueller-Wodarg
Atmospheric Physics Laboratory
Department of Physics & Astronomy
University College London
London W1P 7PP/ U.K.
ingo@apg.ph.ucl.ac.uk
Tel: +44-(0)171-380 7163
Fax: +44-(0)171-380 7161
http://cat.apg.ph.ucl.ac.uk
***********************************************
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-05-04 16:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-03 0:00 Programming on an Alpha (Redhat of course...) Jeremy Sieminski
1998-05-03 3:37 ` Michal Jaegermann
1998-05-03 3:49 ` Brian E.W. Wood
1998-05-03 11:52 ` g77 on Alphas Ingo Mueller-Wodarg
1998-05-03 18:34 ` Robert Williams
1998-05-04 16:30 ` Ingo Mueller-Wodarg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox