> How to make a "universal" project with objective C source and ppc and
> x86 assembler sources.
You can use preprocessor macros in assembler. So, in asmfunc_ppc.s you
could write:
#ifdef __ppc__
/*
PPC code goes here
*/
And, in asmfunc_x86.s:
#ifdef __i386__
/*
32-bit x86 code
*/
Now you can safely add both files to your project. If you're supporting
64-bit you can also check for __ppc64__ and/or __x86_64__.
Xcode will still assemble asmfunc_ppc.s when building for i386, and vice-
versa, but the #ifdefs make sure that only the correct code is visible
for the architecture currently being built.
sherm--
I will try it tonight.
Thank a lot.