public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Trouble with EABI
@ 2002-10-06  7:29 Mile Davidovic
  2002-10-07 13:08 ` Eric Christopher
  0 siblings, 1 reply; 2+ messages in thread
From: Mile Davidovic @ 2002-10-06  7:29 UTC (permalink / raw)
  To: gcc

Hi everybody.

First of all, I want to apologize if I miss newsgroup for this post.
Second, my english is not natural language,
please forgive me for my bad sentences.

We have problem, we use gcc like cross compiler for lx4280 processor
based on mips family. 
We have to link our program with libraries. Theese libraries are
produced by another compiler, Green Hill (GH) actually, 
GH calling convention is EABI. Does anybody have EABI spec?

In documentaion of gcc it seems that gcc support eabi, with switch
-mabi=eabi, but we never succedded to compile 
program with this switch, becouse gcc, we use 2.96,  does not recognize
this switch.
We suspect that all targets, which gcc in ver 2.96 supports, does not
recognize switch for EABI. Is this correct?
If it is and we want to add support for eabi in our target, what is best
way to do it?

We read from: http://www.gnu.org/software/gcc/gcc-3.3/changes.html 
	All configurations now accept the -mabi switch. Note that you
will need appropriate multilibs for this option to work properly.
	ELF configurations will always pass an ABI flag to the
assembler, except when the MIPS EABI is selected
It look like that all target for mips can use switch for choose ABI,
please confirm this. If this true, we will add support
for lx4280 processor in gcc, what is best way to start?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Trouble with EABI
  2002-10-06  7:29 Trouble with EABI Mile Davidovic
@ 2002-10-07 13:08 ` Eric Christopher
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Christopher @ 2002-10-07 13:08 UTC (permalink / raw)
  To: Mile.Davidovic; +Cc: gcc


> In documentaion of gcc it seems that gcc support eabi, with switch
> -mabi=eabi, but we never succedded to compile 
> program with this switch, becouse gcc, we use 2.96,  does not recognize
> this switch.
> We suspect that all targets, which gcc in ver 2.96 supports, does not
> recognize switch for EABI. Is this correct?
> If it is and we want to add support for eabi in our target, what is best
> way to do it?
> 
> We read from: http://www.gnu.org/software/gcc/gcc-3.3/changes.html 
> 	All configurations now accept the -mabi switch. Note that you
> will need appropriate multilibs for this option to work properly.
> 	ELF configurations will always pass an ABI flag to the
> assembler, except when the MIPS EABI is selected
> It look like that all target for mips can use switch for choose ABI,
> please confirm this. If this true, we will add support
> for lx4280 processor in gcc, what is best way to start?
> 

OK. Lot of questions :)

1) 2.96 can recognize the abi switch, but only for mips64-elf since abi
switching never happened for mips-elf. It is possible to change the
default abi though - but you have to do this in the compiler source. See
gcc/config/mips.[ch] for details.

2) For 3.3 you will be able to specify abi for all toolchains.

3) Adding support in gcc for a particular processor: Look in
gcc/config/mips.[ch] as well as gcc/config.gcc at the other mips
processors. Note that binutils support is also necessary.

-eric

-- 
Yuppies wear socks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-07 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-06  7:29 Trouble with EABI Mile Davidovic
2002-10-07 13:08 ` Eric Christopher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).