Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > Cross compilation, windows and m68k??

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-07-2009   #1 (permalink)
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??
Brandon77 is offline  


Reply With Quote
Old 07-10-2009   #2 (permalink)
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??
Brandon77 is offline   Reply With Quote
Old 07-14-2009   #3 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,662
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.
Rubberman is offline   Reply With Quote
Old 07-14-2009   #4 (permalink)
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!
Brandon77 is offline   Reply With Quote
Old 07-14-2009   #5 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,662
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.
Rubberman is offline   Reply With Quote
Old 07-14-2009   #6 (permalink)
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!
Brandon77 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:23 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2