Re: Dev on mac, build on a sparc
Re: Dev on mac, build on a sparc
- Subject: Re: Dev on mac, build on a sparc
- From: Nicolas Goy - kuon - 時期精霊 <email@hidden>
- Date: Fri, 15 Dec 2006 15:24:29 +0100
On 15 Dec 2006, at 14:28, Peter Mulholland wrote:
Hello Nicolas,
Friday, December 15, 2006, 11:56:47 AM, you wrote:
Hello everybody,
I know it sound a bit off topic, but my question is relevant to
xCode, so I thought it was the right place.
I'm currently working on a game project, with networking support
(MMORPG).
Anyway, no trouble for client side, we use xcode to create universal
binaries and windows binary with mingw cross compiling.
Now, for the server part, we will certainly use sparc multicore cpu
(the thread monster servers). I want to dev the server part on my
mac, using xCode, but the app will be compiled with sun studio on
sparc.
I will do the debugging on my mac, compiling as ppc binary (ppc is
near enough of sparc to debug). But I don't know how I will compile
my xCode project using sun studio.
A solution I though of is using makefile within xcode. But, I don't
really know how. I use xCode because it's super handy. I want the
best was to manage my solaris sparc build. I don't want to edit the
makefile each time I move or add a *.c or a *.h.
You will be best to write and 100% debug the server code on the Mac -
make it as portable as possible, if you can, stick to the POSIX API's
like sockets, pthreads etc - don't use any Mac API's, or if you have
to, isolate them out.
Then when it is done and tested, create your Makefile for use on the
SPARC. You will probably be best to use GCC even on SPARC (I presume
you are running Solaris?) instead of the Sun compiler.
There is probably some conversion tool as mentioned, but writing a
Makefile by hand is not too difficult - there are plenty of guides on
the 'net that explain it. The only thing I will say is STAY AWAY FROM
AUTOMAKE, it will take you longer to learn this and its perculiarities
than it will to write a Makefile by hand!
I think this is the best approach.
We only use 100% Posix api.
We don't use any gcc specific feature. So we should be able to
compile with sun studio. (on sparc, with about 500 threads, we have
25% better performances with same source as gcc. It was a small test
program, then I don't know for the finished product, we might test both)
When the product is finished (file structure stable), I'll manualy
create a makefile.
Thanks you all for your time, this helped to know what the dev
community thought of it.
Best regards
--
Kuon
CEO - Goyman.com SA
http://www.goyman.com/
"Computers should not stop working when the users' brain does."
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden