From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5619 invoked from network); 3 May 1998 03:36:57 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 3 May 1998 03:36:57 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.5/8.8.5) id VAA18785; Sat, 2 May 1998 21:37:22 -0600 From: Michal Jaegermann Message-Id: <199805030337.VAA18785@ellpspace.math.ualberta.ca> Subject: Re: Programming on an Alpha (Redhat of course...) To: axp-list@redhat.com Date: Sat, 2 May 1998 21:37:21 -0600 (MDT) Cc: jps@nodezero.com In-Reply-To: <199805022359.XAA05409@cyber3.servtech.com> from "Jeremy Sieminski" at May 2, 98 08:00:03 pm Content-Type: text > > 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