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: More about cross compiling




On Oct 24, 2004, at 9:56 PM, Jeff Laing wrote:

As far as I know, this is no magic command-line switch that can be passed to
gcc to have it generate code targetting a different CPU.

From the gcc man page:
-b machine
The argument machine specifies the target machine for compilation.


The value to use for machine is the same as was specified as the
machine type when configuring GCC as a cross-compiler. For exam-
ple, if a cross-compiler was configured with 'configure i386v', mean-
ing to compile for an 80386 running System V, then you would spec-
ify '-b i386v' to run that cross compiler.


Obviously, you would have to configure and build gcc with the appropriate options.

-Prachi

_______________________________________________
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: 
 >RE: More about cross compiling (From: Jeff Laing <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.