Article View: comp.sys.mac.programmer.codewarrior
Article #974Linking asm into Mach-O project ?
From: Paul Russell
Date: Wed, 26 Jun 2002 16:51
Date: Wed, 26 Jun 2002 16:51
16 lines
1885 bytes
1885 bytes
I'm trying to integrate a chunk of gcc PowerPC assembler code into a CW
8 Mach-O project. I've tried two approaches, neither of which seem to
work. Has anyone else had more success than I have ?
(i) fix the syntax (by hand !) and put the code into an inline asm {}
function - this fails because CW complains that there aren't enough free
registers (despite teh fact that I'm only using about 12 GPR's)
(ii) assemble with gcc and try to link in the object file - the Mach-O
Importer barfs with an error about an unsupported relocation type or
some such
Surely it shouldn't be this hard to link is some very straightforward
asm functions, that already work with gcc ?
Paul
Technical Details
Message-ID:
<3D19F129.B549F3E0@arc-software.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,ca141578f4efb1df,start X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,ca141578f4efb1df,start X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2002-06-26 09:55:13 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mail Message-ID: <3D19F129.B549F3E0@arc-software.com> From: Paul Russell <prussell@arc-software.com> Reply-To: prussell@arc-software.com Organization: Coastal Software X-Mailer: Mozilla 4.76 (Macintosh; U; PPC) X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Linking asm into Mach-O project ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 16 Date: Wed, 26 Jun 2002 16:51:51 GMT NNTP-Posting-Host: 192.146.1.254 X-Complaints-To: abuse@sonic.net X-Trace: typhoon.sonic.net 1025110311 192.146.1.254 (Wed, 26 Jun 2002 09:51:51 PDT) NNTP-Posting-Date: Wed, 26 Jun 2002 09:51:51 PDT