From owner-freebsd-hackers Fri Apr 5 11:37: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tcpns.com (dsl-64-192-239-221.telocity.com [64.192.239.221]) by hub.freebsd.org (Postfix) with ESMTP id E7A3037B421 for ; Fri, 5 Apr 2002 11:36:42 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by tcpns.com (8.12.2/8.12.2) with ESMTP id g35Jaf78064287 for ; Fri, 5 Apr 2002 14:36:42 -0500 (EST) Date: Fri, 5 Apr 2002 14:36:41 -0500 (EST) From: Jason Borkowsky To: freebsd-hackers@freebsd.org Subject: 64-bit compiling on a 32-bit FreeBSD machine Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have a FreeBSD 4.5-RELEASE box that I recently installed gcc-3.0.4. Is there any support for compiling 64-bit source code on this 32-bit set-up? (ie, a sort of emulation mode in that if the compiler sees a "long long int", it creates 2 32-bit registers for it instead of a 64-bit register). Currently gcc-3.0.4 understands "long long int", but if you try to assign it a 64-bit value, it just gets set to the largest 32-bit value (4 billion). If gcc cannot handle this, are there any other compilers that can made 64-bit code work on a 32-bit machine? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message