home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 262,615 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Lawrence D'Oliveiro   
   Re: Clair Grant on VMS code base   
   11 Apr 25 15:05:09   
   
   From: arne@vajhoej.dk   
      
   On 4/9/2025 5:10 PM, Lawrence D'Oliveiro wrote:   
   > On Wed, 9 Apr 2025 16:01:02 -0400, John Reagan wrote:   
   >> I just looked at the largest MAR file in DCL.  It has 10,000 lines but   
   >> many are comments and many are macro definitions.  Not actual VAX   
   >> instructions.   
   >   
   > I would count macro definition bodies in full, and each macro expansion as   
   > one line. After all, macros are code written once and used multiple times,   
   > just like function calls as far as source code is concerned.   
      
   That definitely makes sense.   
      
   But there are still multiple possible counts:   
   - lines in files   
   - non-comment and non-blank lines in files   
   - non-comment and non-blank and non-continued lines in files   
      
     Macro-32 demo   
      
             .title  loc   
            $SSDEF   
            .psect  $PDATA quad,pic,con,lcl,shr,noexe,nowrt   
   fmt:    .ascid  "!SL !SL !SL"   
            .psect  $LOCAL quad,pic,con,lcl,noshr,noexe,wrt   
   buf:    .ascid  "                    "   
            .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt   
            .entry  loc,^m<>   
            pushl   #20   
            pushl   #22   
            pushl   #24   
            pushab  buf   
            pushl   #0   
            pushab  fmt   
            calls   #6, -   
                    G^LIB$SYS_FAO   
            pushab  buf   
            calls   #1, -   
                    G^LIB$PUT_OUTPUT   
            movl    #SS$_NORMAL, r0   
            ret   
            .end    loc   
      
   But in the C vs Macro-32 discussion I think it about evens out. C got   
   more blank lines, but Macro-32 (hopefully!) has more comments.   
      
   Arne   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca