Re: [Linux-ia64] run time code generation for IA-64

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-05-28 04:56:20
>>>>> On Wed, 28 May 2003 00:17:42 +0530 (IST), CH Gowri Kumar <gkumar@csa.iisc.ernet.in> said:

  CH> Hi David,
  >> Where do you have R4 and R5 before using them?

  CH> Did you mean to say that I have to save R4 and R5 before using them?

Yes, of course: "preserved" means you have to save a register before
using it.  On the positive side, it's contents will get preserved
across calls.

  CH> Just wondering why isn't there a standard calling convention on IA-64.
  CH> Something of this sort(if at all to be saved):
  CH> rp has to be saved in loc0
  CH> sp has to be saved in loc1
  CH> gp has to be saved in loc2

That would needlessly constrain code optimization.  For example, on
ia64, it's almost never necessary to save sp.

	--david
Received on Tue May 27 11:57:55 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:15 EST