Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= Newsgroups: comp.os.vms Subject: Re: Clair Grant on VMS code base Date: Fri, 11 Apr 2025 15:05:09 -0400 Organization: A noiseless patient Spider Lines: 47 Message-ID: References: <3136f5b07ea8e91c50a7d2c122a0f3f3bdd210e0@i2pn2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 11 Apr 2025 21:05:10 +0200 (CEST) Injection-Info: dont-email.me; posting-host="6cd349d906819d71d8d8da34cb0e9dba"; logging-data="2420496"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QaK02EEScpAP9DSgjO6tZP27akY6FVi8=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:aNIdl/HsblU9QvcYm84FjqlETmk= In-Reply-To: Content-Language: en-US Bytes: 2648 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