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

  • Follow


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
0
Reply ramanchalotra (38) 12/24/2008 10:20:59 AM

Raman <ramanchalotra@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/
0
Reply hume 12/24/2008 2:10:49 PM


hume.spamfilter@bofh.ca wrote:
> Raman <ramanchalotra@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
Reply ddunham 12/24/2008 6:46:29 PM

2 Replies
349 Views

(page loaded in 0.037 seconds)

Similiar Articles:













7/22/2012 6:08:49 PM


Reply: