[A89] Re: calling files


[Prev][Next][Index][Thread]

[A89] Re: calling files




Hi!

| Forgot to ask; why shouldn't I use C and a68k assembler with the tigcc
| linker? what more problems are there?

See, once there was only one linker, which Xavier Vassor had written.
Thomas Nussbaumer says it's not very well written, which I can't judge (but
I know that the C version of tigcc.exe was pretty bad).  Anyway, it's buggy,
and no one but Niklas has made any changes to it yet.  There is, of course,
mlink, which (besides Johan) you should know better than anyone else, but it
can't be included in TIGCC because its source is not available.

However, the bugs in the linker only seem to occur when multiple files are
linked together.  So François Revol (mmu_man) suggested to use the GNU
linker (ld.exe), which I didn't know about before.  It is not configurable
for the AmigaOS format as far as I know.  This is why only C files can be
linked together, but C and (A68k) assembly files still have to be linked
using whatever other linker there is available.  There's your explanation.
Unless someone takes the time to write a program that converts AmigaOS to
COFF files, I don't see a solution.  And personally, I don't see any need to
use A68k assembly anyway, since the GNU assembler seems a little better to
me.  But I don't use assembly.

There is a program called objcopy in the GNU binutils package, which can
convert object files of all sorts, strip certain sections from them, and
much more.  Maybe it supports the AmigaOS format as well.

Bye,
Sebastian Reichelt





References: