public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Tiago Pereira <tiagomdp@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: More than 2Gb of static memory with powerpc64
Date: Wed, 22 Apr 2009 21:46:00 -0000	[thread overview]
Message-ID: <1FBB8725-23C5-4314-9563-B09A95B48B80@kernel.crashing.org> (raw)
In-Reply-To: <49EED88C.3060603@gmail.com>

> 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

      reply	other threads:[~2009-04-22 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22  8:43 Tiago Pereira
2009-04-22 21:46 ` Segher Boessenkool [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1FBB8725-23C5-4314-9563-B09A95B48B80@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=gcc-help@gcc.gnu.org \
    --cc=tiagomdp@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).