From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 327672EFD2 for ; Tue, 28 Aug 2001 04:00:24 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f7S7t4j00537 for axp-list@listman.redhat.com; Tue, 28 Aug 2001 03:55:04 -0400 Received: from enterprise2.newlogic.com (enterprise2.newlogic.at [194.208.88.1]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f7S7t3g00533 for ; Tue, 28 Aug 2001 03:55:03 -0400 Received: from enterprise2.newlogic.com (enterprise2 [194.208.88.1]) by enterprise2.newlogic.com (8.9.2/8.9.2) with ESMTP id KAA25435 for ; Tue, 28 Aug 2001 10:00:17 +0200 (MET DST) Received: from ultra5-25.newlogic.at (ultra5-25.newlogic.at [194.208.88.125]) by enterprise2.newlogic.com (8.9.2/8.9.2) with ESMTP id KAA25431 for ; Tue, 28 Aug 2001 10:00:16 +0200 (MET DST) Received: (from gmaier@localhost) by ultra5-25.newlogic.at (8.9.3+Sun/8.9.3) id JAA07005 for axp-list@redhat.com; Tue, 28 Aug 2001 09:59:53 +0200 (MEST) Message-ID: X-Mailer: XFMail 1.4.7p2 on Solaris X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <5AD7782D2FB2D11183CE0000F8023ACD04C4D1D4@meoexc1.meo.cpqcorp.net> Date: Tue, 28 Aug 2001 09:59:53 +0200 (MEST) From: Gregor Maier To: axp-list@redhat.com Subject: RE: Porting hints X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On 28-Aug-2001 Davies, Huw wrote: > Hi, > > I'm attempting to port some software (a computer simulator) which runs under > Intel Linux to my Alpha. (The fastest Intel box I have is 166MHz so I > suspect the alpha will be a little quicker :-). I can confirm that the > software runs on Intel but "works" significantly differently on Alpha (works > implies the user interface seems to start but the application loops rather > than runs). > > I have done some simple "eye" checks on the code and nothing obvious appears > wrong. I have tried using both gcc and ccc and get more warnings with ccc > (mainly casts). Are there any pointers to information about solving this - I > suspect either an initialisation or possibly a data alignment assumption. > I'm trying to avoid understanding all the code, but if that's the next step > so be it! > Mayb this will help. the problem could be the int datatype in C. The width of an int (number of bits) in C is equal to the processor's register width (i.e. 32 on Intel and 64 and alpha) maybe there's some similiar problem with pointers (i.e. storing pointers in 32 bit integers combined with some fancy typecasts, ...) Gregor ---------------------------------- E-Mail: Gregor Maier Date: 28-Aug-2001 Time: 09:51:06 ----------------------------------