Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Installing Matlab on a new PC, 64 bit or 32bit?
Date: Sat, 28 Feb 2009 16:00:19 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 46
Message-ID: <gobn2j$ivq$1@fred.mathworks.com>
References: <eddc3833-bb12-4e65-ab9a-441d974245ff@k19g2000prh.googlegroups.com> <8a0ecd17-dda2-4cde-800e-c97a6b1c998b@v5g2000prm.googlegroups.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1235836819 19450 172.30.248.37 (28 Feb 2009 16:00:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 28 Feb 2009 16:00:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:521540


LunaMoon <lunamoonmoon@gmail.com> wrote in message <8a0ecd17-dda2-4cde-800e-c97a6b1c998b@v5g2000prm.googlegroups.com>...
> On Feb 28, 7:36=A0am, "Bruno Luong" <b.lu...@fogale.findmycountry>
> wrote:
> > LunaMoon <lunamoonm...@gmail.com> wrote in message <72b40e48-bdcb-4985-a7=
> 91-60110b515...@e36g2000prg.googlegroups.com>...
> > > On Feb 28, 1:44=3DA0am, "Bruno Luong" <b.lu...@fogale.findmycountry>
> > > wrote:
> > > > Luna Moon <lunamoonm...@gmail.com> wrote in message <eddc3833-bb12-4e=
> 65-a=3D
> > > b9a-441d97424...@k19g2000prh.googlegroups.com>...
> > > > > New Dell PC, Intel Quad Core 2.66GHz, 4GB RAM memory,
> > > I have a bunch of homemade mex files, which I previously made using VC+
> > > + under 32bit,
> >
> > > will they run from within the 64bitMatlabthat I am installing?
> >
> > No. AndMatlabdoes not provide64bitC compiler.
> >
> > You have to dig to third party compilers, some of them (Microsoft to avoi=
> d citing any company name) requires a huge SDK package, etc...
> >
> > Some of the complex code might be a pain to convert to64bits. I still hav=
> e few of them that I have not time to convert yet, though I have a64-bitmac=
> hine since 6 months.
> >
> > =A0Bruno
> 
> 
> 
> So are you saying that you are using a 64 bit version Matlab but you
> call mex files which were previously compiled to be 32 bit, and
> everything is okay?

No. I actually reply. mex32 cannot run of Matlab 64 bits. Hope it's clear.
> 
> That's actually good:
> 
> When 64bit is available, you use the 64bit portion; if not, (for
> example, no time to do the conversion, or too troublesome to convert,
> etc.), then the 64 bit Matlab will run the 32bit mex smoothly...
> 
> Is that the case?

No and no. mex32 runs on Matlab-32; mex64 runs on Matlab-64. No mixing possible. Hope it's even clearer.

Bruno