[Info-vax] VAX Macro to C conversion
Arne Vajhøj
arne at vajhoej.dk
Sat Jul 13 00:30:10 EDT 2019
On 6/25/2019 12:09 PM, John Reagan wrote:
> On Tuesday, June 25, 2019 at 10:32:13 AM UTC-4, Bill Gunshannon wrote:
>> Do any of the VMS C Compilers have the equivalent of -S in most
>> Unix C Compilers? I would love to see a few simple programs
>> (starting with "Hello World") written in Macro, converted to C
>> and then compiled with the option to list the assembler just to
>> see how they compared. :-)
> Not currently. LLVM provides that feature and our current internal
> cross-compilers have a /SWITCH=ASSEMBLY qualifier that causes a ".s"
> file to be written instead of an ".obj" file. In theory, you should
> be able to turn around and assemble that file (using the LLVM llvm-mc
> tool) to get the identical ".obj" file. I did that a few times in
> the past month or so and it seemed to work.
> However, on OpenVMS, ANALYZE/OBJECT/DISASSEMBLE is the equivalent of
> what objdump would give you on a Linux system. (There is also an
> llvm-objdump equivalent tool that we'll provide too). That just
> gives you the code but is lacking for static data initialization,
> etc. You have to get that from the Alpha or Itanium compiler
> listings.
$ PAS/LIST/MACH ...
should reveal some things. Just not directly compilable.
Arne
More information about the Info-vax
mailing list