Messages in this thread |  | | Date | Mon, 08 Oct 2001 10:29:56 -0700 | From | george anzinger <> | Subject | Re: [RFC] Standard way of generating assembler offsets |
| |
Pantelis Antoniou wrote: > > Hi there. > > If anyone is interested I have already made a perl > script that produces assembler offsets from structure > members. > > It doesn't need to run native since it reads the > header files, extract the structures and by using > objdump calculates the offsets automatically. > > Maybe it needs some more work for what you describe, > but it's exactly what you describe. > > If you're interested please email me directly for > more information. > One of the problems with this sort of thing is that it has a hard time getting the CPP macros right. The best way to do this sort of thing is to actually compile the header file with all the CONFIG defines and a set of tools (read macros) that produce the required offsets. This way you get what you want and don't have to reinvent the CPP stuff. It also allows production of #define constants and other constructs that folks push into CPP, in a very simple and straight forward manner.
Been there, done that.
George - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |