public inbox for
 help / color / mirror / Atom feed
From: Jonathan Wakely <>
To: Me Myself and I <>
Subject: Re: gcj onLinux, 32 and 64 bit executables.
Date: Wed, 14 Sep 2011 07:50:00 -0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <BAY159-W24080BB666923C4DD9D7D5D0040@phx.gbl>

On 14 September 2011 04:41, Me Myself and I wrote:
> If I successfully compile a program with gcj --main=Test -o Test.bin
> on 64 bit linux, I then have a 64 bit Linux exectuable.
> If I do similar on 32 bit Linux, I have a 32 bit Linux exectable.
> If I am running 64 bit Linux, is there a way to use gcj on this to get a 32 bit Linux bin,
> what should I do for this, where should I look, and can anyone give me any simple,
> practical instructions on how to set it up?

Add -m32 to the gcj command.

Depending on your Linux distro you might need to install some
additional 32-bit packages.

  reply	other threads:[~2011-09-14  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14  3:41 Me Myself and I
2011-09-14  7:50 ` Jonathan Wakely [this message]
2011-11-13 16:35 ` Andrew Haley
2011-11-13 23:25   ` Garbage collection segfault in OpenIndiana Johann 'Myrkraverk' Oskarsson

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:

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

  git send-email \ \ \ \ \ \

* 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).