Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Program in 32-bit, run on 64-bit OK?

Received: by 10.204.153.206 with SMTP id l14mr1012561bkw.5.1353486719569;
        Wed, 21 Nov 2012 00:31:59 -0800 (PST)
Path: ha8ni3698wib.1!nntp.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!backlog1.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 14 Nov 2012 12:14:56 -0500
From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= <a...@vajhoej.dk>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
Newsgroups: comp.lang.java.programmer
Subject: Re: Program in 32-bit, run on 64-bit OK?
References: <k8082k$fmr$1@news.albasani.net> <50a3a6ea$0$290$14726298@news.sunsite.dk> <k80j5b$o67$1@speranza.aioe.org>
In-Reply-To: <k80j5b$o67$1@speranza.aioe.org>
Lines: 47
Message-ID: <50a3d194$0$289$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 72.192.23.141
X-Trace: news.sunsite.dk DXC=b55CW9B<El>1@QH[VaTAe9YSB=nbEKnk;27dVg51A2l7JPe3\kP5EU1KBm9cfh9BS4M2;kT<[:>[1V=?fe@lQiQ09;E^L8=fPN3
X-Complaints-To: staff@sunsite.dk
X-Original-Bytes: 2308
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

On 11/14/2012 12:11 PM, Cholo Lennon wrote:
> On 14/11/2012 11:12, Arne Vajh�j wrote:
>> On 11/14/2012 8:58 AM, sl@exabyte wrote:
>>> I am too sure on this.
>>>
>>> I am preparing to install OpenSuse v10 32-bit on my pc. This pc is for
>>> testing my C programs, which will eventually be transferred to my
>>> internet
>>> host which is running the 64-bit version.
>>>
>>> Can my programs run ?
>>>
>>> Off my head I think they should, but the reverse may not. Please
>>> correct me.
>>>
>>> Do I have to pick the correct compiler ?
>>
>> Pure Java:
>>
>>                   Run with 32    Run with 64
>> Build with 32       yes           yes
>> Build with 64       yes           yes
>>
>>
>> Pure C:
>>
>>                   Run on 32    Run on 64
>> Build for 32        yes           yes
>> Build for 64        no            yes
>>
>> Mix of Java and C via JNI:
>>
>>                   Run on/with 32    Run on/with 64
>> Build for 32          yes              no
>
> The OP can still run a 32-bit JNI java/C application on 64-bit: He/She
> just needs to use a 32-bit JVM.

Yes.

What do you think "with 64" meant?

>> Build for 64          no               yes

Arne