Find the answer to your Linux question:
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.
  1. #1
    Just 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??

  2. #2
    Just 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??

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    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!

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jul 2009
    Posts
    27
    Quote Originally Posted by Rubberman View Post
    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.

    I am using windows with Cygwin/gcc installed, trying to compile a program that will run on an M68k processor. Thank you for your reply and please let me know if you have any other ideas about how to accomplish this!

  6. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    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!

  7. #6
    Just Joined!
    Join Date
    Jul 2009
    Posts
    27
    Quote Originally Posted by Rubberman View Post
    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.

    Great, thanks a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •