This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM-ELF -> PE-COFF with objcopy


pps <i-love-spam@yandex.ru> writes:

> What surprises me is this: gcc is able to take lots of lots c++ files,
> preprocess them, compile etc... then link produced object files. It
> understands all the formats, so, why not to take produced object code 
> from an ELF object and link it... producing a PE-coff executable??

Because the code required for an ELF shared library to function and the
code required for a PE DLL to function are different.  You need to have
the right compiler.  Trying to do the conversion after the compiler has
already run is too late.

Given your problem description, why are you trying to create a DLL at
all?  Why not just create an archive which can be linked directly into
the executable?

Also, RVCT definitely generates smaller code than current gcc, but I
have not heard that it generates code that runs faster.  Since you
apparently only care about runtime performance, not code size, you
should consider trying arm-pe-gcc on your code to see what the
performance is.  gcc is generally competitive with proprietary compilers
on performance.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]