This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

Re: [ECOS] arm-elf-ld problems


Gary Thomas wrote:
> 
> Since you are using StrongARM (an unsupported ARM architecture at
> this time), what compiler options, etc, are you using?  How did you
> configure the tools when you built them?

I configured them as arm-elf. I made the assumption that it would
produce ARMv4 compatible code and I also assumed that by avoiding
hard floats I should be able to run the code on StrongARM. I figured
that the only penalty would be in optimization; as the compiler would 
most likely not be able schedule the instructions properly.

Also; in the packages/targets file I added my platform with:

  cflags {
    ARCHFLAGS "-mcpu=strongarm"

A quick glance at /src/gcc/config/arm.c told me that this perhaps
should work. (gcc supports StrongARM, so the eCos tools should too?)

However; as stated, theese are all assumptions so I do expect a
fair amount of trouble. :-)

I solved the problem with the binary format by compiling to ELF and
using arm-elf-objcopy to produce the binary. I have'nt tried the
image yet; but the disassembly looks ok.

/Dan

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