954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

win32 gcc cross compiling for linux target

Does anyone know if this is possible, and how to do it? Or if there is another way?

Cygwin GCC creates PE binaries (i think), I want ELF binaries.

Cheers!

alpha_foobar
Junior Poster
182 posts since May 2005
Reputation Points: 20
Solved Threads: 5
 

I am not sure if this can be done, specially given that you are going to do it from Windows. However, have you had a look into GCC manual? http://www.gnu.org/software/gcc/onlinedocs/

Also why not do the task on a Linux machine?


-----------------------

Programming ( Assignment / Project ) Help

proghelper
Light Poster
28 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

i've read a little from the manual but it seems that i should be looking at the build options for cygwin-gcc instead.

i am trying to compile the JOS operating system that is used as an example in OS design courses at UCLA, MIT and NYU. It compiles fine on linux (and i am having issues compiling it on cygwin). I also think that it needs to be an ELF binary... but I haven't got it to compile yet anyway.

We use windows at work, so i'm looking at doing a little work on it in my free time there...

cheers

alpha_foobar
Junior Poster
182 posts since May 2005
Reputation Points: 20
Solved Threads: 5
 

The source base is the same, right? If you can keep an updated copy of the source at work then there's no point in using a cross-compiler.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

well, it runs in bochs... so if i can create elf binaries at work i can run the OS at work as well as home...

alpha_foobar
Junior Poster
182 posts since May 2005
Reputation Points: 20
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You