* Using object files created by DU as in Linux?
@ 1998-05-05 4:00 bmeyer
0 siblings, 0 replies; only message in thread
From: bmeyer @ 1998-05-05 4:00 UTC (permalink / raw)
I am trying to do something weird, and consequently, I am failing....
I have a program that creates a large file containing assembler code
for lots of functions. This code is slightly inefficient, and (worse)
scheduled extremely badly. It still runs faster than generating C code
and letting gcc do its thing, though, so for my particular application
it is the way to go.
But of course it would be nice if something could be made to do peephole
optimization and instruction scheduling on it --- which is exactly what
the Digital Unix assembler will do with the option "-O1". Great!
Only --- after moving my file to DU, assembling it, and moving the object file
back, I cannot link it. No surprise, it's a COFF file, and I am running
RH5.0, which is completely ELF based. Unfortunately, trying to convert the
file using objcopy results in myriads of "bfd assertion fail elf.c:3447",
and no conversion.
Does anybody know of a way to do this, short of
a) figuring out what is eating objcopy, and fixing it, or
b) Using "dis" on the DU box to disassemble the code, moving the resulting
text file back to Linux, and fixing up all the places where external
symbols were referenced?
(b) is theoretically possible for my application, because I can reduce
the amount of relocation needed almost to zero --- but it still strikes
me as a somewhat silly way of doing it.
Any ideas?
Bernie
--
============================================================================
"It's a magical world, Hobbes ol' buddy...
...let's go exploring"
Calvin's final words, on December 31st, 1995
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-05 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-05 4:00 Using object files created by DU as in Linux? bmeyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox