From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11241 invoked by alias); 22 Apr 2009 21:46:31 -0000 Received: (qmail 11228 invoked by uid 22791); 22 Apr 2009 21:46:27 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Apr 2009 21:46:20 +0000 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id n3MLkAUJ007486; Wed, 22 Apr 2009 16:46:14 -0500 In-Reply-To: <49EED88C.3060603@gmail.com> References: <49EED88C.3060603@gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1FBB8725-23C5-4314-9563-B09A95B48B80@kernel.crashing.org> Cc: gcc-help@gcc.gnu.org Content-Transfer-Encoding: 7bit From: Segher Boessenkool Subject: Re: More than 2Gb of static memory with powerpc64 Date: Wed, 22 Apr 2009 21:46:00 -0000 To: Tiago Pereira X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00325.txt.bz2 > However, I'm having problems compiling the same program in a PowerPC > system (64-bit). It seems to me that the -mcmodel=medium only applies > for x86-64 systems. That is correct. > I have been using -mpowerpc64 to ensure it compiles a 64-bit > version for > the PowerPC, but I don't know how (or if it's possible) to address > more > than 2Gb of static memory in this architecture. -mpowerpc64 enables the use of 64-bit instructions, and treats the general purpose registers as 64-bit; it does not make your program a 64-bit program, use -m64 for that. Segher