From owner-freebsd-hackers Fri Apr 5 12:20:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 9035D37B41C for ; Fri, 5 Apr 2002 12:20:30 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id g35KKFl35330; Fri, 5 Apr 2002 22:20:15 +0200 (CEST) (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.1.10]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g35KD96e050557; Fri, 5 Apr 2002 22:13:09 +0200 (CEST)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (localhost [127.0.0.1]) by cicely8.cicely.de (8.12.2/8.12.2) with ESMTP id g35KD9nU056553; Fri, 5 Apr 2002 22:13:09 +0200 (CEST) (envelope-from ticso@cicely8.cicely.de) Received: (from ticso@localhost) by cicely8.cicely.de (8.12.2/8.12.2/Submit) id g35KD8Ij056552; Fri, 5 Apr 2002 22:13:08 +0200 (CEST) Date: Fri, 5 Apr 2002 22:13:08 +0200 From: Bernd Walter To: Jason Borkowsky Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 64-bit compiling on a 32-bit FreeBSD machine Message-ID: <20020405201307.GT51284@cicely8.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 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 On Fri, Apr 05, 2002 at 02:36:41PM -0500, Jason Borkowsky wrote: > > 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? Numeric constants are int by default. Add LL directly after the number to make them long long. E.g.: long long x; x = 332478632478624LL; -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message