• Re: cc/lis/machine on OpenVMS x86_64 Operating System, Version V9.2-3; no machine code????

    From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@arne@vajhoej.dk to comp.os.vms on Mon Jul 21 14:22:29 2025
    From Newsgroup: comp.os.vms

    (this did not make it to any of the NNTP servers I use, but it
    did hit INFO-VAX)

    I cannot see the machine code produced by the cc compiler:

    $ type test.lis
    Source Listing 20-JUL-2025 09:57:31
    VSI C x86-64 V7.6-001-50YAN Page 1
    20-JUL-2025 09:52:01 DKA100:[ZRIDE]TEST.C;1

    1 #include <stdio.h>
    1 1665 int main() {
    1 1666 printf("Hello world\n");
    1 1667 }


    Command Line
    ------- ----

    CC/LIS/MACHINE TEST.C

    Any ideas?

    $ cc test
    $ anal/obj/disasm/out=hello.lis hello

    VSI is trying to get it in release notes for all compilers.

    Arne

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Chris Townley@news@cct-net.co.uk to comp.os.vms on Mon Jul 21 20:11:22 2025
    From Newsgroup: comp.os.vms

    On 21/07/2025 19:22, Arne Vajh|+j wrote:
    (this did not make it to any of the NNTP servers I use, but it
    did hit INFO-VAX)

    I cannot see the machine code produced by the cc compiler:

    $ type test.lis
    -a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a Source Listing 20-JUL-2025 09:57:31
    VSI C x86-64 V7.6-001-50YAN-a-a-a-a-a-a Page 1
    20-JUL-2025 09:52:01-a DKA100:[ZRIDE]TEST.C;1

    -a-a-a-a-a-a-a-a-a-a-a-a-a-a 1 #include <stdio.h>
    -a-a-a-a-a-a 1-a-a-a 1665 int main() {
    -a-a-a-a-a-a 1-a-a-a 1666 printf("Hello world\n");
    -a-a-a-a-a-a 1-a-a-a 1667 }


    Command Line
    ------- ----

    CC/LIS/MACHINE TEST.C

    Any ideas?

    $ cc test
    $ anal/obj/disasm/out=hello.lis hello

    VSI is trying to get it in release notes for all compilers.

    Arne


    I thought it was...
    --
    Chris
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@arne@vajhoej.dk to comp.os.vms on Mon Jul 21 15:25:58 2025
    From Newsgroup: comp.os.vms

    On 7/21/2025 3:11 PM, Chris Townley wrote:
    On 21/07/2025 19:22, Arne Vajh|+j wrote:
    $ cc test
    $ anal/obj/disasm/out=hello.lis hello

    VSI is trying to get it in release notes for all compilers.

    I thought it was...

    It is in all the recent ones I have seen.

    But I don't know if it is all and how far back it goes.

    Arne

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From hb0815@mw40171@mucweb.de to comp.os.vms on Tue Jul 22 01:02:13 2025
    From Newsgroup: comp.os.vms

    On 7/21/25 20:22, Arne Vajh|+j wrote:

    $ cc test
    $ anal/obj/disasm/out=hello.lis hello

    The line numbers in the disassembler output refer to the line numbers in
    the listing. So you want to have a compiler listing file. You can append
    the disassembler output to it without creating a temporary file with a
    command like:

    $ pipe (cc/lis=sys$output test ;anal/disa test) |copy sys$pipe test.lis

    For convenience you can put it into a DCL script or define a DCL symbol:

    $ ccl:="pipe (cc/lis=sys$output &f ;anal/disa &f) |copy sys$pipe &f.lis"
    $ f:=test
    $ ccl

    --- Synchronet 3.21a-Linux NewsLink 1.2