Previous Thread
Next Thread
Print Thread
Page 1 of 4 1 2 3 4
64-bit build on OSX #38154
02/07/08 03:27 PM
02/07/08 03:27 PM
Joined: Feb 2007
Posts: 546
Brazil
S
Sune Offline OP
Senior Member
Sune  Offline OP
Senior Member
S
Joined: Feb 2007
Posts: 546
Brazil
I'm using this when I compile SDLMAME:

make ARCHOPTS=-march=pentium4 TARGETOS=macosx

(yeah, don't ask ;-)

It's working great, but if possible, what do I add to make a 64-bit build?
Or is it already enabled when compiling like this?

I see "64-bit features enabled" in the startup log of OSX.

Thanks.

Re: 64-bit build on OSX [Re: Sune] #38155
02/07/08 03:38 PM
02/07/08 03:38 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
I have no idea about 64-bit on OSX yet (my Intel Mini is a Core 1 Duo and has no x64). Vas, judge, you guys know anything?

Re: 64-bit build on OSX [Re: R. Belmont] #38156
02/07/08 03:43 PM
02/07/08 03:43 PM
Joined: Apr 2004
Posts: 1,554
J
judge Offline
Very Senior Member
judge  Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,554
To be honest, I haven't even tried doing a 64bit build yet.

Re: 64-bit build on OSX [Re: judge] #38161
02/07/08 04:19 PM
02/07/08 04:19 PM
Joined: Feb 2007
Posts: 546
Brazil
S
Sune Offline OP
Senior Member
Sune  Offline OP
Senior Member
S
Joined: Feb 2007
Posts: 546
Brazil
Hell, I'll do it!

Just tell me what to add to the command line.

(or where I can go to find out myself)

I'll post my findings in this thread later.

Re: 64-bit build on OSX [Re: Sune] #38165
02/07/08 05:54 PM
02/07/08 05:54 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
It's not that simple. You need to figure out how to get the compiler to switch to 64-bit mode, then you need a 64-bit version of SDL, and *then* you can think about compiling MAME 64-bit.

Re: 64-bit build on OSX [Re: R. Belmont] #38168
02/07/08 06:52 PM
02/07/08 06:52 PM
Joined: Feb 2007
Posts: 546
Brazil
S
Sune Offline OP
Senior Member
Sune  Offline OP
Senior Member
S
Joined: Feb 2007
Posts: 546
Brazil
Too bad, I can only find a 64-bit runtime library for Linux.

I don't suppose it's possible to build a 64-bit Intel OSX binary on Linux..? What do I know, I'm very new to compiling stuff and using operating systems that end in x.

Anyway .123 runs great as it is. I just wanted to see if I could squeeze a few extra fps out by going 64-bit.

I haven't gotten into comparing speeds with the Windows version, but STUN Runner spins at around 60-70% in SDLMAME (OpenGL, MT disabled) on Leopard, and just barely reaches 100% in-game on Windows XP (D3D, MT enabled). That's on a 3.4 GHz P4 with 7600GT video.

SDLMAME gets a substantial speed boost with MT enabled (especially in software mode) but the terminal fills up with errors about leaking. Doesn't crash though.

Re: 64-bit build on OSX [Re: Sune] #38169
02/07/08 07:26 PM
02/07/08 07:26 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
64-bit is a substantial boost for MIPS R(4+)xxx-based games and variable for everything else.

Re: 64-bit build on OSX [Re: R. Belmont] #38171
02/07/08 08:00 PM
02/07/08 08:00 PM
Joined: Apr 2004
Posts: 1,554
J
judge Offline
Very Senior Member
judge  Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,554
Hrm, xcode gcc's manpage doesn't mention x86_64 as a supported arch, but it seems to build nicely with it...

Oh yay, the HIView things do not appear to be available for 64bit applications

Last edited by judge; 02/07/08 08:04 PM.
Re: 64-bit build on OSX [Re: judge] #38177
02/08/08 08:52 AM
02/08/08 08:52 AM
Joined: Feb 2004
Posts: 2,012
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,012
Sydney, Australia
Yes, Carbon UI and HI Toolkit are the only parts of OS X that they decided won't make the 64-bit transition. Although the man page doesn't mention it, Apple does clearly describe how to build 64-bit binaries in the help and on their web site. Also, the sdlmame makefile should automatically target x86_64 if you give it PTR64=1 (unless that got lost recently).

Re: 64-bit build on OSX [Re: Vas Crabb] #38178
02/08/08 08:57 AM
02/08/08 08:57 AM
Joined: Apr 2004
Posts: 1,554
J
judge Offline
Very Senior Member
judge  Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,554
Getting x86_64 added by setting PTR64=1 almost worked, only a small change was needed to src/osd/sdl/sdl.mak.

A lot more work would be needed to get a fully working 64bit build.

Page 1 of 4 1 2 3 4

Moderated by  R. Belmont 

Who's Online Now
3 registered members (Pernod, 2 invisible), 112 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,606
Posts112,515
Members4,827
Most Online296
Dec 5th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.025s Queries: 15 (0.007s) Memory: 5.7197 MB (Peak: 5.9407 MB) Zlib enabled. Server Time: 2018-12-15 13:30:27 UTC