Results 1 to 6 of 6
I am using GNU and gcc, wondering if it is possible to compile a program and output 2 versions, one that runs on a windows machine and one that runs ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-07-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 27
Cross compilation, windows and m68k??
I am using GNU and gcc, wondering if it is possible to compile a program and output 2 versions, one that runs on a windows machine and one that runs on a motorola 68000 processor??
- 07-10-2009 #2Just Joined!
- Join Date
- Jul 2009
- Posts
- 27
...and by cross compilation I mean porting the code to run on a M68k as well as an Intel T7600 processor, anyone know how to do this??
- 07-14-2009 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,144
Building an application on LInux to run on a Windows system is problematic at best since you don't have all the support libraries available that are required to run under Windows. All the program initialization code and such differ significantly. Building a LInux application on an x86 system to run on an M68k processor is a much more reasonable endeavor. You need to review the GNU documentation about processor family options when building cross-platform code. It is too complex to get into here, I think.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 07-14-2009 #4Just Joined!
- Join Date
- Jul 2009
- Posts
- 27
- 07-14-2009 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,144
Ah. You probably need to install the required GNU components for cross-compiling the m68k targets. Sorry, but I haven't done any cross-compiling on cygwin for non-x86 targets, though it should be feasible, so this is the best I can suggest at this point.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 07-14-2009 #6


Reply With Quote

