[Info-vax] Text processing examples with Fortran requested
Arne Vajhøj
arne at vajhoej.dk
Sun Nov 15 21:28:26 EST 2009
Michael Moroney wrote:
> Speaking of text manipulation, I'll ask this, though I know it's a real
> shot in the dark.
>
> Does anyone know of any tools to manipulate VAX Macro-32 code? By
> "manipulate" I mean to find instructions with specific addressing modes
> or do things like convert all word instructions whose destination is a
> register to longword equivalent and find all MOVAx instructions whose base
> is R7, all without being fooled by commented out lines, of course.
>
> I know I'll have to write individual tools, and will have to learn
> one of those text manipulation "languages", but I figure I'd ask anyway.
>
> I have to deal with thousands of lines of the most gawdawful macro-32
> code ever created.
I have never heard of such a tool.
If it is sufficient many lines of code, then you could write a
parser. It should not that hard to do with flex & bison.
Otherwise manual inspection may be faster in the end.
Arne
More information about the Info-vax
mailing list