Re: [Linux-ia64] Offsets from C struct into assembler

From: David Mosberger <davidm_at_hpl.hp.com>
Date: 2002-01-29 19:39:34
>>>>> On Tue, 29 Jan 2002 08:06:46 +0100, Christian Hildner <christian.hildner@hob.de> said:

  Christian> Although it would be a nice feature of the gcc if it
  Christian> could include C headers combined with an assembler
  Christian> directive for using the offsets the simple solution with
  Christian> print_offsets does it's job fine. The good thing here is
  Christian> that awk isn't needed.

It's not difficult to fix print_offsets.c to avoid awk.  We could use
directives of the form:

  asm volatile ("uc_rnat = %0"::"i"(offsetof (struct _Unwind_Context, rnat)));

for this purpose (this is a cut & paste from gcc's unwind-ia64.c).

	--david
Received on Tue Jan 29 00:39:53 2002

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