MacApp->C++->A/UX
Matthias Urlichs
urlichs at smurf.sub.org
Sat Apr 20 05:09:56 AEST 1991
In comp.unix.aux, article <51729 at apple.Apple.COM>,
ksand at Apple.COM (Kent Sandvik) writes:
<
< Hmm, a better question would be "Are there any plans to support COFF
< format from the MPW environment?"
It's possible to convert COFF to MPW.
The main problem is that due to the nonrelocatability of COFF code, if you
want to link COFF stuff you have to put everything in data space (i.e.
A5-relative). This includes the executable code.
If you want to convert /lib/libc.a, you'll have to split it into its
constituent object files first.
Converter script follows. (Warning: It's written in perl.)
After conversion, you'll have to say "setfile -t 'OBJ ' name".
The converter is able to prefix external names with some standard symbol so
you can avoid naming conflicts.
Is there any good way to feed object code back into the assembler? Dumpobj
isn't very good at producing reasemblable output. Maybe an additional option
for dumpobj is in order here; it would certainly simplify things.
Apple?
begin 755 coff2obj.Z
M'YV0(T*\J#-'S at LV;\:$8?-"3!HW+^"4D<-&@8(1(*B at 23,'A)PP=-!,!($F
M3!HY>4#,&2,G#1PZ(.A\=#/'S!LY;3H&>5$%"X at A3XP8`?%&C)HR8V":2<.F
MS)R+(*)*C?J0SAL03:!<(6H4J5*F3EU`??(RS1N:.J!&;6$5!)$D4D#`J4.G
M8\@R'IW684/GX1D02YMVK'J5S$FO-U.^E2(6XUK#<^"`4$,0YAPT;^[8%0EB
MS%DZ9=S4)6HF)F>@0@5M5ZITT(=_0[7S6SL2^;OZ&<9,GI-_&4EO`D5-F
M*1X06)*K#)/'[M7A922Z(8-<>=LRME&"*(,'M!PW"U7F:2/F#1L0X-N4`;YV
M3ATSQJO[)//&J6F\<\*H9P%"S.PP<$A'1D?)8<$>""UX1 at 9><XV&W42];90;
M"`_1MJ!*<(0QQGJLM4`&2&'(15='#Z+DVX05?DA'B)%IR.$(4"516AZR at 7#'
M;C#=A956(+#QT!HCM44?"+M%Z)=*H<V1AAA-V0@;&J9QQ`)K(-!8!WIEE$%=
M6_FEY"&(P,E898TWBA93876T`4=1:D3946!E\*?C at F:$L==H81#7GU-TA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