From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,92b6bdee1ef02aeb,start X-Google-Attributes: gid111c93,public From: Erik de Castro Lopo Subject: Re: Is Linux 64-bit? Date: 1998/06/17 Message-ID: <3586FB83.754C@REMOVE-THIS.fairlightesp.com.au>#1/1 X-Deja-AN: 363337059 Content-Transfer-Encoding: 7bit References: <6m6pf8$bs5$1@supernews.com> To: Michael Rich Content-Type: text/plain; charset=us-ascii Organization: Fairlight ESP Pty Ltd Mime-Version: 1.0 Reply-To: erikd@zip.com.au Newsgroups: comp.os.linux.alpha Michael Rich wrote: > > Or is it just 32-bit? I know it will run on an Alpha, and seeing that they > are typically 64-bit, I was wonder if Linux was. Linux is 64 bit on the processors like Alpha, Sparc, MIPS etc. Linux is 32 bit on other processors like i386/i486/Pentium and M68k. > If it is, then Red hat must have a time keeping both the x86 and alpha > versions in sync. The Linux kernel code is maintained by "our leader" Linus Torvalds. Redhat just maintains a Linux distribution (kernel + toolset + applications + installation procedure). The Linux kernel source code has a small amount (less than 1%) of processor specific code for all of the supported processors plus the general code which is used on all processors. The code is written in such a way as to make sure it will compile cleanly for both 32 bit and 64 bit processors. It theory, it would not be too difficult to port the code to a 128 bit processor when one becomes available. Unfortunately, many apps written for Intel Linux will not compile correctly for 64 bit processors due to programming naughties like casting a pointer to an int etc. It is however perfectly possible to write software which compiles correctly for both 32 and 64 bit processors. Hope this clears things up, Erik