|
|
Compile question
Is it possible to compile an application on SPARC and make it x86
binary, or do I have to compile it on an x86 Solaris platform? (Using
SS11) I thought it might be possible to specify arch with something
like -xarch=<?>...
|
|
0
|
|
|
|
Reply
|
nergal (18)
|
3/16/2008 10:12:32 PM |
|
nergal wrote:
> Is it possible to compile an application on SPARC and make it x86
> binary, or do I have to compile it on an x86 Solaris platform? (Using
> SS11) I thought it might be possible to specify arch with something
> like -xarch=<?>...
No, you have to compile for Sparc on Sparc and x86 on x86.
--
Ian Collins.
|
|
0
|
|
|
|
Reply
|
Ian
|
3/16/2008 10:29:43 PM
|
|
On Sun, 16 Mar 2008 15:12:32 -0700 (PDT), nergal <nergal@nergal.se> wrote:
> Is it possible to compile an application on SPARC and make it x86
> binary, or do I have to compile it on an x86 Solaris platform? (Using
> SS11) I thought it might be possible to specify arch with something
> like -xarch=<?>...
No, not with Sun Studio 11. You can only build `native' binaries with
Studio 11.
You can build SPARC (32-bit) and SPARC-64 binaries on a SPARC build
machine. You can also build I386 and X86-64 binaries on an X86 build
machine. No cross-building support is available though.
|
|
0
|
|
|
|
Reply
|
Giorgos
|
3/16/2008 10:38:16 PM
|
|
On 2008-03-16, nergal <nergal@nergal.se> wrote:
> Is it possible to compile an application on SPARC and make it x86
> binary, or do I have to compile it on an x86 Solaris platform? (Using
> SS11) I thought it might be possible to specify arch with something
> like -xarch=<?>...
You can build cross-development systems from the binutils and
gcc sources.
Andreas.
|
|
0
|
|
|
|
Reply
|
comp
|
3/16/2008 11:02:04 PM
|
|
In article
<164787ac-9b3a-49f4-b5a8-778b82cb99e0@i7g2000prf.googlegroups.com>,
nergal <nergal@nergal.se> wrote:
> Is it possible to compile an application on SPARC and make it x86
> binary, or do I have to compile it on an x86 Solaris platform? (Using
> SS11) I thought it might be possible to specify arch with something
> like -xarch=<?>...
As has been pointed out, without source, you're pretty much SOL. The
best you could do is run a SPARC emulator to run the application. It
won't run fast but with the Intel old Model 40 TARDIS features, you
won't care.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
|
|
0
|
|
|
|
Reply
|
Michael
|
3/17/2008 5:14:04 PM
|
|
Michael Vilain wrote:
> In article
> <164787ac-9b3a-49f4-b5a8-778b82cb99e0@i7g2000prf.googlegroups.com>,
> nergal <nergal@nergal.se> wrote:
>
>
>>Is it possible to compile an application on SPARC and make it x86
>>binary, or do I have to compile it on an x86 Solaris platform? (Using
>>SS11) I thought it might be possible to specify arch with something
>>like -xarch=<?>...
>
>
> As has been pointed out, without source, you're pretty much SOL. The
> best you could do is run a SPARC emulator to run the application. It
> won't run fast but with the Intel old Model 40 TARDIS features, you
> won't care.
>
I think the OP is asking about a "cross compiler". AFAIK, there is
none! If the OP REALLY needs a cross compiler, it's probably possible
to do it with GCC though it may take a good deal of work. I don't think
people write cross compilers for platforms where a native compiler is
readily available!
|
|
0
|
|
|
|
Reply
|
Richard
|
3/17/2008 6:56:12 PM
|
|
On 2008-03-16, Ian Collins <ian-news@hotmail.com> wrote:
> nergal wrote:
>> Is it possible to compile an application on SPARC and make it x86
>> binary, or do I have to compile it on an x86 Solaris platform? (Using
>> SS11) I thought it might be possible to specify arch with something
>> like -xarch=<?>...
>
> No, you have to compile for Sparc on Sparc and x86 on x86.
>
Unless you use gcc, which has full cross-compile capabilities if you
need it.
--
Christopher Mattern
NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities
|
|
0
|
|
|
|
Reply
|
Chris
|
3/18/2008 1:29:45 AM
|
|
|
6 Replies
129 Views
(page loaded in 0.429 seconds)
|
|
|
|
|
|
|
|
|