🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.transputer
Article #411

Re: Assembly Escape in Logical C

#411
From: Kirk Bailey
Date: Wed, 22 Nov 1989 06:30
15 lines
1175 bytes
RE: Accessing 'C' variables from assembly:

The approach suggested is unnecessary, you can use the '[' ']' notation (see
the TCX users manual), to "symbolically" get access to the local stackframe
offset of a local variable or parameter in all versions of Logical Systems "C"
from 88.4 on.  For a "global" variable, just listing the name (as in the
example), will work.

Although the bracket notation may always be replaced by a programmer computed
offset (counting up the local variables, etc.), its use is STRONGLY encouraged
since newer versions of TCX include some optimizations which make programmer
determination difficult (and version dependent).

	Kirk Bailey
	Logical Systems
Technical Details
Message-ID: <13930@orstcs.CS.ORST.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!ucsd!ogccse!orstcs!jacobs.CS.ORST.EDU!bailey
References: <5727@ubc-cs.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!ucsd!ogccse!orstcs!jacobs.CS.ORST.EDU!bailey
From: bailey@jacobs.CS.ORST.EDU (Kirk Bailey)
Newsgroups: comp.sys.transputer
Subject: Re: Assembly Escape in Logical C
Message-ID: <13930@orstcs.CS.ORST.EDU>
Date: 22 Nov 89 06:30:19 GMT
References: <5727@ubc-cs.UUCP>
Sender: usenet@orstcs.CS.ORST.EDU
Reply-To: bailey@jacobs.CS.ORST.EDU.UUCP (Kirk Bailey)
Organization: Oregon State University - CS - Corvallis Oregon
Lines: 15