win32 gcc cross compiling for linux target

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

win32 gcc cross compiling for linux target

 
0
  #1
Aug 3rd, 2005
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!
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 28
Reputation: proghelper is an unknown quantity at this point 
Solved Threads: 0
proghelper proghelper is offline Offline
Light Poster

Re: win32 gcc cross compiling for linux target

 
0
  #2
Aug 3rd, 2005
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
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: win32 gcc cross compiling for linux target

 
0
  #3
Aug 3rd, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,868
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 755
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: win32 gcc cross compiling for linux target

 
0
  #4
Aug 3rd, 2005
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.
New members chased away this month: 5
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: win32 gcc cross compiling for linux target

 
0
  #5
Aug 3rd, 2005
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...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum


Views: 2405 | Replies: 4
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC