Re: Problems compiling project with x86 .asm files as Universal Binary
Re: Problems compiling project with x86 .asm files as Universal Binary
- Subject: Re: Problems compiling project with x86 .asm files as Universal Binary
- From: "E. Wing" <email@hidden>
- Date: Thu, 19 Jan 2006 14:48:08 -0800
> My first problem is that when compiling
> > the PowerPC side, /usr/libexec/gcc/darwin/ppc/as is trying to compile
> > the x86 .asm files which causes the compile to die. How can I instruct
> > Xcode to only process these files compiling for Intel?
> Wrap the assembly code with something like #if TARGET_CPU_X86
The assembly code exists in separate, dedicated .asm files. I don't
think I can use C preprocessor macros in these. I tried adding:
#ifndef __ppc__
<asm stuff>
#endif
to each of the files. Stragnely, it allowed the PowerPC side to get
through without compile error, but when the Intel side started
compiling, I get an error:
error: label or instruction expected at start of line
Is there something else I can try (or a different way of specifying
preprocessor macros for .asm files)?
> > My second problem is when I'm compiling on the Intel side, there is a
> > failure somewhere and I get the following error output:
> > {standard input}:22:Alignment too large: 15. assumed.
> > {standard input}:80:Alignment too large: 15. assumed.
> In the build results window, click the icon to the right of the
> Warnings button (the button with the little horizontal lines like a
> sheet of paper). That will show the build log. Often it will show the
> line numbers where the errors were.
>
Yeah, I have this open. Unfortunately, this does not give me any more
information on this error.
Thanks,
Eric
_______________________________________________
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