Related articles |
---|
C code validation service derek@knosof.co.uk (1996-07-15) |
Re: C code validation service egbert@torch.timeplex.com (1996-07-19) |
getting symbolic C structure offsets (was: Re: C code validation servi thornbur@theory.physics.ubc.ca (Jonathan Thornburg) (1996-07-27) |
Re: getting symbolic C structure offsets (was: Re: C code validation s rfg@monkeys.com (1996-07-31) |
From: | egbert@torch.timeplex.com (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.
Steve
---
Stephen (Steve) L. Egbert Work: (214) 340-3300 x2123
ascom Timeplex Fax: (214) 341-3654
Dallas, Texas 75240 Net: egbert_steve@timeplex.com
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]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.