Re: [RFC] Standard way of generating assembler offsets

From: george anzinger (
Date: Mon Oct 08 2001 - 12:29:56 EST

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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:19 EST