Re: exporting struct offsets to assembler

From: Roman Zippel (zippel@fh-brandenburg.de)
Date: Tue Aug 08 2000 - 06:53:11 EST


Hi,

> Back when I worked on the HPRT (HPs PA risk real time system) I solved
> this problem by embedding a C program in the asm code. To asm it looked
> like macros so ccp stripped it out. The make rule (a real monster)
> stripped out the C program, ran it and set its output down as an xxx.h
> file which the asm code then included. The result was fresh symbol
> offsets, etc. but it was UGLY.

How we generate m68k_defs.h in arch/m68k/kernel/Makefile doesn't look like
a monster to me, but it does exactly that. :-)

bye, Roman

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:14 EST