From owner-freebsd-questions@FreeBSD.ORG Wed May 27 16:40:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD9BE106567E for ; Wed, 27 May 2009 16:40:59 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id BD7A78FC12 for ; Wed, 27 May 2009 16:40:58 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n4RGeqmP053175; Wed, 27 May 2009 18:40:52 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n4RGepWx053172; Wed, 27 May 2009 18:40:52 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 27 May 2009 18:40:51 +0200 (CEST) From: Wojciech Puchar To: Kirk Strauser In-Reply-To: <200905271048.27837.kirk@strauser.com> Message-ID: References: <4A1AA3DC.5020300@network-i.net> <4A1CD688.4020604@infracaninophile.co.uk> <200905271048.27837.kirk@strauser.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD & Software RAID X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 16:41:00 -0000 >> in C, there will work as good in 64-bit mode and in 32-bit mode. > > Wojciech, I have to ask: are you actually a programmer or are you repeating yes i am. if you are interested i wrote programs for x86, ARM (ARM7TDMI), MIPS32 (4Kc), and once for alpha. I have quite good knowledge for ARM and MIPS assembly, for x86 - quite outdated as i wrote my last assembly program when 486 was new CPU. > things you've read elsewhere? you probably mistaken me with some poeple on that list that do this. If you are reading my posts on that list (and maybe others) you know that the last thing i do is to repeat and repeat know and popular opinions :) > I can think of a whole list of reasons why code > written to target a 64-bit system would be non-trivial to port to 32-bit, you talk about performance or if it work at all? i already wrote a lot of programs, and after moving to 64-bit (amd64) only one wasn't working just after recompiling, because i assumed that pointer is 4 byte long. do you have any other examples of code non-portability between amd64 and i386? I say "between amd64 and i386" because there are more issues with other archs, where for example non-aligned memory access is not allowed.