can as-MCORE generate little endian formate output object file?
Nick Clifton
nickc@redhat.com
Mon Nov 4 09:04:00 GMT 2002
Hi Liu,
> I download the MTCgnu4.0 from internet and use gdb-MCORE to do
> some simultion on the mcore. In the documents of mcore specification,
> it is said that big endian or little endian format executable program
> can be configured to execute on it. I read the doc of as-MCORE and
> find options "-EB" and "-EL" , but as-MCORE doesn't recognize them
> when I tried.
What error message did you receive ?
I tried using these switches and both worked.
> So can you tell me whether the as-MCORE and ld-MCORE can generate
> little endian formate output object file and how I can do that?
Yes it can. If you are using GCC to drive the assembler you can use
the command line switches -mbig-endian or -mlittle-endian. If you are
driving the assembler directly you can just use the -EB or -EL
switches.
Cheers
Nick
More information about the Gcc
mailing list