Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generate x86 32-bit code from SPARC( running solaris 8) with gcc

4 views
Skip to first unread message

Raman

unread,
Dec 24, 2008, 5:20:59 AM12/24/08
to
Hi All,


Is it possible to generate 32-bit code for x86 processor from SPARC
machine running solaris 8.
If yes, please specify the options that need to be passed to gcc.

Thanks,
Raman Chalotra

hume.sp...@bofh.ca

unread,
Dec 24, 2008, 9:10:49 AM12/24/08
to
Raman <ramanc...@gmail.com> wrote:
> Is it possible to generate 32-bit code for x86 processor from SPARC
> machine running solaris 8.

Yes. But you'll need to compile a special version of gcc, a cross-compiler.
Use gcc to build a gcc-x86. Then use gcc-x86 to cross-compile, just as if
you were in x86 in the first place.

> If yes, please specify the options that need to be passed to gcc.

It's not as easy as just a few options.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/

Darren Dunham

unread,
Dec 24, 2008, 1:46:29 PM12/24/08
to
hume.sp...@bofh.ca wrote:
> Raman <ramanc...@gmail.com> wrote:
>> Is it possible to generate 32-bit code for x86 processor from SPARC
>> machine running solaris 8.
>
> Yes. But you'll need to compile a special version of gcc, a cross-compiler.
> Use gcc to build a gcc-x86. Then use gcc-x86 to cross-compile, just as if
> you were in x86 in the first place.

You'd also need the x86 libraries, a cross-linker, and a cross-assembler
as well.

--
Darren

0 new messages