You can pass the -arch flag to gcc, ld, and as. The allowable values are i386 and ppc. You can specify both flags as follows:
-arch ppc -arch i386
This is what the documentation says. I just assume if you specify both flags you would get a universal binary. I never tried this myself. To make it more complicated, there are also the flags -arch ppc64 and -arch x86_64 for 64bit binaries.
Thanks, that works. It even works if I pass all the mentioned flags to the compiler. It generates a universal binary with 32-bit and 64-bit support for ppc and i386 (not that this makes much sense but nice to know).
I still don't know if the binaries are downwardcompatible, i.e. if they run on Panther if I compile them on Leopard.
ml wrote:Let me know when the universal binaries are ready to be downloaded, and I'll check them out for you on my Mac.
Regards,
ml
Yes, would be nice to have another sparring partner running on Mac. I don't care how fast it is, it's even better if it is not too strong.
One way to limit the strength of chess engines is to run them in Virtual PC on the Mac. Windows XP is a bit sluggish under OS X, but runs at an acceptable speed under OS 9 (about 1.7 times faster, on average). Works quite well.
Thanks for your offer. Here are two universal binaries which should (at least I hope so) run on ppc and i386. There is a 32-bit and a 64-bit compile. The 64-bit version runs on my intel-Mac around 20% faster than the 32-bit version.
Roman Hartmann wrote:Thanks for your offer. Here are two universal binaries which should (at least I hope so) run on ppc and i386. There is a 32-bit and a 64-bit compile. The 64-bit version runs on my intel-Mac around 20% faster than the 32-bit version.
dyld: ./roce37_32 Undefined symbols:
./roce37_32 undefined reference to ___stdinp expected to be defined in /usr/lib/libSystem.B.dylib
./roce37_32 undefined reference to ___stdoutp expected to be defined in /usr/lib/libSystem.B.dylib
Trace/BPT trap
The Sigma 6.1 chess GUI won't recognize it as a UCI engine. Maybe there are some missing dependencies?
As for Sigma Chess, it can be a bit picky about engines. One thing that will make it claim an engine isn't UCI is if you already have 19 installed. Remove one then add the new one. It worked fine on my Sigma.
Well, It is a weak opponent, on my Macs (both intel and PPC) as it seems to ignore time controls. It just starts thinking and goes until it loses on time. It can be used for analysis though.