Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Building x86 Mac code with CodeWarrior 9.4?

 
   Mac (Home) -> Programmer Code RSS
Next:  iSYM file corruption (reprise)  
Author Message
jonhoyle

External


Since: Jun 08, 2005
Posts: 18



(Msg. 1) Posted: Wed Aug 03, 2005 8:51 am
Post subject: Building x86 Mac code with CodeWarrior 9.4?
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

Okay, I realize I am probably treading upon fantasy here, but...

For those of us who still have CW 9.4 for Mac & Windows, the x86
compiler creates still creates Win32 code. However, I am curious as to
if it were possible to create x86 Mac binaries? Granted the default
stationary is for Windows executable formats, and Mach-O is an entirely
different format, however...

Creating a file using the x86 Mac file format shouldn't be impossible.
Secondly, instead of linking against the Win32 API code would have to
be written to link against the Mac OS X API. Much of the ANSI standard
libraries should already be platform agnostic. But perhaps one could
create a Mac x86 executable starting with the CW 9.4 compiler as a
starting point?

Could this be possible?

Jonathan Hoyle
Back to top
Login to vote
brandon

External


Since: Jul 01, 2005
Posts: 11



(Msg. 2) Posted: Wed Aug 03, 2005 11:15 am
Post subject: Re: Building x86 Mac code with CodeWarrior 9.4? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'd say that without modification to the compiler itself in addition to
the linker, probably not.
Back to top
Login to vote
Paul

External


Since: Jun 06, 2005
Posts: 6



(Msg. 3) Posted: Wed Aug 03, 2005 6:25 pm
Post subject: Re: Building x86 Mac code with CodeWarrior 9.4? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<jonhoyle DeleteThis @mac.com> wrote in message
news:1123084314.693477.50050@o13g2000cwo.googlegroups.com...
> Okay, I realize I am probably treading upon fantasy here, but...
>
> For those of us who still have CW 9.4 for Mac & Windows, the x86
> compiler creates still creates Win32 code. However, I am curious as to
> if it were possible to create x86 Mac binaries? Granted the default
> stationary is for Windows executable formats, and Mach-O is an entirely
> different format, however...
>
> Creating a file using the x86 Mac file format shouldn't be impossible.
> Secondly, instead of linking against the Win32 API code would have to
> be written to link against the Mac OS X API. Much of the ANSI standard
> libraries should already be platform agnostic. But perhaps one could
> create a Mac x86 executable starting with the CW 9.4 compiler as a
> starting point?
>
> Could this be possible?

The compiler should work, barring some difference in calling convention or
the like that can't be #pragma'ed. The problem is linking into whatever
Apple's executable format is (I doubt it's MS-compatible PEF.) You could:
write a complete linker (major reinventing of the wheel there); write a
linker plugin to wrap Apple's x86 linker, assuming the CW compiler output
was usable or could be translated; write a postlinker to read a generated
Windows-compatible binary and rewrite it into Apple format (possible, but
not something I'd lightly take on.)

As always, debugging support is an open question using any of these methods:
there will obviously never be a CW debugger for x86 Mac's, not sure what it
would take to make use of XCode / gdb.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Building a framework with PowerPlant - Hi, Maybe some has done his already .. I have a .lib made in CW9 with PowerPlant code. I insert the libs plus the resources it needs in my main project and all goes fine. But i-d like to encapsulate PowerPlant and its reosources in a static library...

CW 10 building larger Mach-O binary - I'm just curious, but my Mach-O binary is about 400K (about 9%) larger when built with CW 10 than when built with CW 9, both with optimizations off. Any ideas why that would be? Thanks, Larry

CodeWarrior 9.5 - Where can I download it? Thanks Felix

Codewarrior 9.5 and - Hi, I'm using Codewarrior 8 and Codewarrior 9 (9.5). In version 9.5, when debugging, before the application starts, Codewarrior spends a lot of time "caching directories". After the application stops, it spends again a lot of time "cachin...

Applescript with codewarrior - I am new to the apple script. I want to write an AppleScript that opens a CodeWarrior and creates new .mcp (project file) and apply some settings to the project file. I don't know whether its possible or not.. Can someone guide me how to do it. Thanks i...
       Mac (Home) -> Programmer Code All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact