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 649602F685 for ; Tue, 28 Aug 2001 10:07:50 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f7SE2V530673 for axp-list@listman.redhat.com; Tue, 28 Aug 2001 10:02:31 -0400 Received: from be.cs.appstate.edu (be.cs.appstate.edu [152.10.113.29]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f7SE2Tg30669 for ; Tue, 28 Aug 2001 10:02:29 -0400 Received: (from khj@localhost) by be.cs.appstate.edu (8.9.1/8.9.1) id KAA16856; Tue, 28 Aug 2001 10:07:47 -0400 (EDT) To: axp-list@redhat.com Subject: Re: Porting hints References: <5AD7782D2FB2D11183CE0000F8023ACD04C4D1D4@meoexc1.meo.cpqcorp.net> From: Kenneth Jacker Date: 28 Aug 2001 10:07:47 -0400 In-Reply-To: "Davies, Huw"'s message of "Tue, 28 Aug 2001 15:41:36 +0800" Message-ID: User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-Reply-To: khj@cs.appstate.edu List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: huw> I'm attempting to port some software (a computer simulator) huw> which runs under Intel Linux to my Alpha. Before switching to AlphaLinux, I used DU/Tru64 for many years on my AS255/300. I, too, had trouble getting a machine simulator (spim/xspim) to run correctly. As others have suggested, the problem was cause by the original authors assuming that ints/ptrs were 32 not 64 bits. In particular, after many hours of debugging with 'gdb', I found the problem: they had copied a negative, 32 bit value into a 64 bit integer without proper (two's compl) sign extension. The length dependencies are subtle and hard to find. But with perseverance, you'll eventually succeed! Good luck, -- Prof Kenneth H Jacker khj@cs.appstate.edu Computer Science Dept www.cs.appstate.edu/~khj Appalachian State Univ Boone, NC 28608 USA