![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I mount a ufs filesystem on a solaris 10 sparc onto a Linux server | ilan | SUN Solaris | 3 | 06-04-2008 03:29 PM |
| Sun targets Linux users with OpenSolaris binaries - ComputerworldUK | iBot | UNIX and Linux RSS News | 0 | 07-16-2007 04:00 AM |
| CC 5.5 compiler flag to issue 64bit porting warnings on sparc-solaris | shobhah | SUN Solaris | 0 | 03-02-2007 02:47 AM |
| how to create freeBSD binaries in Linux or Windows | szzz | High Level Programming | 3 | 02-19-2004 05:17 AM |
| Compile freeBSD binaries in Linux | shalmoo | High Level Programming | 0 | 10-01-2003 04:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
C compiler to build Sparc/Solaris binaries on Linux
Just that the Subject says.
I am looking for a C compiler for Linux x86 that will allow me to compile a C source code file and the resulting binary will be able to run on a Sparc running Solaris. Thanks. |
|
||||
|
This is what's known as cross-compilation, and it's not that simple. gcc can be configured to cross-compile, yes, but that's not usually installed as standard, it's not as easy as "add sparc module", and there's more to it than the compiler. You need the Solaris headers and libraries, too -- after all you're compiling for Sparc/Solaris, not Sparc/GNU. Even if you do get a working sparc compiler on x86, you could be plagued with weird issues. You wouldn't even have a way to test your executables.
My suggestion would be to just get a sparc on ebay. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|