John,

>Jeff Ishaq writes:
>> I.e., is there a tool that takes a .lib as input and craps out a .a file for
>> gcc?
>
>Conceivable, since both compilers probably use the same calling conventions.
>(Calling conventions are (of course) only enforced for systrap functions,
>but for simplicity CW probably uses the same one for normal functions, and
>I know GCC does.)  However, since the CW library format is proprietary (?),
>this would have to come from Metrowerks, and it seems unlikely.

You can use the MWDump68K MPW tool (from Metrowerks) to output the .a from
a .lib, but then you'll need to spend some time fixing the resulting source
up before you can assembly/compile it under gcc. Depending on the size of
the .lib, and how handy you are with MPW or Unix scripts, it's an hour to a
day kind of thing.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)


Reply via email to