Article View: comp.lang.modula2
Article #4662"Code" keyword Zuerich Single Pass Compiler
From: Robert A. Agnew
Date: Tue, 21 Feb 1989 01:19
Date: Tue, 21 Feb 1989 01:19
19 lines
1512 bytes
1512 bytes
Is there anyone out there who knows the semantic usage of the "code"
procedure in the Zuerich NS32000 single pass compiler? This syntax is
defined in the scant source code documentation as
PROCEDURE procname '(' parameterlist ')' CODE n ';'
The ostensible use of this clumsy construction is to generate a SVC
(superisor call) to the OS with a SVC number of n. The keyword CODE
does not apperar in any of the source for the compiler. The compiler does not
allow the use of inline assembler code. Wirth offers this construction as
compensation for the ommision of inline code. It is not clear to me why these
"code" procedures should have unique names as they all apparently just generate
a "SVC n" instruction. It is even less clear as to why the arguments are not
typed more explicitly in the documentation. The compiler balks at all but a
few definitions for the parameter list. It appears that it would be better to
implement a SVC procedure in assembler and eliminate the superfluous keyword.
Any ideas?
Thanks -- Bob Agnew agnew@trwrc.rc.trw.com
Technical Details
Message-ID:
<322@trwrc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!trwrc!agnewShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!trwrc!agnew From: agnew@trwrc.UUCP (Robert A. Agnew) Newsgroups: comp.lang.modula2,comp.sys.nsc.32k Subject: "Code" keyword Zuerich Single Pass Compiler Keywords: zuerich,zurich,ns32000,code Message-ID: <322@trwrc.UUCP> Date: 21 Feb 89 01:19:39 GMT Followup-To: comp.lang.modula2 Organization: TRW-MEAD, San Diego, Ca. Lines: 19