Re: C code validation service (Stephen L. Egbert)
19 Jul 1996 00:09:28 -0400

          From comp.compilers

Related articles
C code validation service (1996-07-15)
Re: C code validation service (1996-07-19)
getting symbolic C structure offsets (was: Re: C code validation servi (Jonathan Thornburg) (1996-07-27)
Re: getting symbolic C structure offsets (was: Re: C code validation s (1996-07-31)
| List of all articles for this month |

From: (Stephen L. Egbert)
Newsgroups: comp.compilers
Date: 19 Jul 1996 00:09:28 -0400
Organization: ascom Timplex, Inc.
References: 96-07-102
Summary: Need tool to translate symbolic offset in assembly operand
Keywords: C, assembler

Does anyone know of any extended preprocessor (GNU cpp or otherwise) that
can translate the C-styled structure offset for uses with assembly code
using symbolic offset.

At the moment, only #define can replace any matching symbolic offset in a
typical assembly opcode/operand(s).

The idea is to maintain a single include file for uses for both C and
assembly using GNU tools.


Stephen (Steve) L. Egbert Work: (214) 340-3300 x2123
ascom Timeplex Fax: (214) 341-3654
Dallas, Texas 75240 Net:
                                                                            Pager: (214) 451-0437
[I'd think you could hack something up by running the structure def
through cc -g -S and using a perl script to extract the info from the
.stabs entries into defines for your assembler code. Unspeakbly gross, but
quite effective. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.