Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling project with x86 .asm files as Universal Binary



> 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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Problems compiling project with x86 .asm files as Universal Binary (From: "E. Wing" <email@hidden>)
 >Re: Problems compiling project with x86 .asm files as Universal Binary (From: Dave Camp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.