🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2497

Pascal and CALLS/CALLG (was: Fortran vs. C)

#2497
From: Erland Sommarskog
Date: Mon, 10 Dec 1990 23:18
16 lines
1134 bytes
Also sprach Jim Giles (jlg@lanl.gov):
>Now, Pascal doesn't allow separate compilation.  So it _could_ use the
>faster call on those routines determined not to be recursive (which
>can be detected at compile time in Pascal).  In C, the same trick
>_could_ be used, but only if you put all your procedures into the
>same source file.

Wait, we're talking VAX here, and VAX Pascal does allow separate
compilation. VAX Pascal actually generates both CALLG and CALLS
instruction, and it is my impression that the former dominates.
I can't recall I have ever seen it use a static parameter block
for CALLG, but it always generates code to build the parameter
block on the stack at run time. Whether this really is any gain 
over a CALLS I don't know.
--
Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
Technical Details
Message-ID: <9012102318.AA19286@helios.enea.se>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!ucsd!ucbvax!enea.se!sommar

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!ucsd!ucbvax!enea.se!sommar
From: sommar@enea.se (Erland Sommarskog)
Newsgroups: comp.lang.misc
Subject: Pascal and CALLS/CALLG (was: Fortran vs. C)
Message-ID: <9012102318.AA19286@helios.enea.se>
Date: 10 Dec 90 23:18:00 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 16