public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* V850 ABI?
@ 2005-08-21 11:07 Torsten Mohr
  2005-08-24 19:03 ` James E Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Torsten Mohr @ 2005-08-21 11:07 UTC (permalink / raw)
  To: gcc

Hi,

from gcc-3.4.4/gcc/config/v850/v850.h i got some ideas
about the registers (#defs REGISTER_NAMES and
ADDITIONAL_REGISTER_NAMES) and about the use of them
from the comments to #def REG_ALLOC_ORDER.

In that file i've also read about an option "ghs", does
that one switch to the Greenhills ABI?

From that file i can't really conclude everything.
For example i don't know if registers 20 and 21 hold the
values 255 and 65535 (an optimisation on V850).  The startup
code in newlib assigns them, but does gcc really rely on that
and uses that (this question is just an example)?


Is there a description of the ABI or the ABIs available?


Best regards,
Torsten.

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

* Re: V850 ABI?
  2005-08-21 11:07 V850 ABI? Torsten Mohr
@ 2005-08-24 19:03 ` James E Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: James E Wilson @ 2005-08-24 19:03 UTC (permalink / raw)
  To: Torsten Mohr; +Cc: gcc

Torsten Mohr wrote:
> In that file i've also read about an option "ghs", does
> that one switch to the Greenhills ABI?

In theory, yes.  In practice, I'd be skeptical.  It probably hasn't been
well tested.

> From that file i can't really conclude everything.
> For example i don't know if registers 20 and 21 hold the
> values 255 and 65535 (an optimisation on V850).  The startup
> code in newlib assigns them, but does gcc really rely on that
> and uses that (this question is just an example)?

Try writing a simple example program to check.  Since 20 and 21 are not
fixed registers, my guess would be no.

> Is there a description of the ABI or the ABIs available?

Red Hat probably has a manual.  If you can find a copy of a Red Hat v850
release, there may be a manual inside it that has ABI info.  Otherwise,
probably no.

Gcc normally does not define the ABI.  We just follow ABI standards
produced by others.  You could try checking in NEC publishes an ABI for
the v850.

For some embedded targets, gcc defines the ABI because there isn't an
external one we can follow.  In this case, gcc should document the ABI
that it implements.  This is done for some targets.  If you look, you
can see that some targets have a *ABI* or *abi* file that documents the
gcc abi.  Unfortunately, we don't do this for as many targets as we should.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com

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

end of thread, other threads:[~2005-08-24 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-21 11:07 V850 ABI? Torsten Mohr
2005-08-24 19:03 ` James E Wilson

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).