Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Cholo Lennon Newsgroups: comp.lang.java.programmer Subject: Re: Program in 32-bit, run on 64-bit OK? Date: Wed, 14 Nov 2012 14:11:24 -0300 Organization: Aioe.org NNTP Server Lines: 49 Message-ID: References: <50a3a6ea$0$290$14726298@news.sunsite.dk> NNTP-Posting-Host: dp5YZW0enlqCPhi24qa7Fw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:19750 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. > Build for 64 no yes > Best Regards -- Cholo Lennon Bs.As. ARG