From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Cc: jps@nodezero.com
Subject: Re: Programming on an Alpha (Redhat of course...)
Date: Sat, 2 May 1998 21:37:21 -0600 (MDT) [thread overview]
Message-ID: <199805030337.VAA18785@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <199805022359.XAA05409@cyber3.servtech.com> from "Jeremy Sieminski" at May 2, 98 08:00:03 pm
>
> 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
next prev parent reply other threads:[~1998-05-03 3:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-03 0:00 Programming on an Alpha (Redhat of course...) Jeremy Sieminski
1998-05-03 3:37 ` Michal Jaegermann [this message]
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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox