Path: 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 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