[Info-vax] exact case transfer_vectors for VAX Macro?
hb
end.of at inter.net
Thu Jan 24 04:33:46 EST 2013
On 01/24/2013 01:31 AM, John E. Malmberg wrote:
> Hand editing the object file is not practical though because of the
> large volume of symbols. And I need this to be a totally automated build
> process.
>
> I need to have both the exact case transfer vector and the uppercase
> transfer vector so a global replace is also not feasible even all search
> strings where unique.
Then you also need both global symbols defined in your C object module,
anyway, or you need to change/enhance the VAX linker, because an ALIAS
feature (or a case blind match) is not available, there.
That leaves you with the problem to generate both universal symbols in
the transfer object module. The VAX object language is documented in
older linker manuals. It should be simple to write a program which walks
through the global symbol table and changes a symbol and finds the TIR
records and changes the very same symbol there as well. But how do you
know which symbol or placeholder to modify to what?
It may be simpler to write the object module, with an own macro32
assembler or maybe with gas, where you have source control.
But it may even be simpler to patch a copy of MACRO32 not to uppercase
everything (and then carefully write all language tokens in UPPERCASE).
On the other hand, if you want to have the shareable image upward
compatible, then you don't (want or) need to rebuild the transfer object
module in each build.
More information about the Info-vax
mailing list