Sujet : Re: Clair Grant on VMS code base
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 11. Apr 2025, 20:05:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vtbp55$29rog$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
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