Xref: utzoo comp.sys.mac.programmer:5511 comp.sys.mac.hypercard:1802 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!rutgers!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer,comp.sys.mac.hypercard Subject: Re: XFCN/XCMD string in MPW C v3.0 Message-ID: <28684@apple.Apple.COM> Date: 10 Apr 89 04:46:11 GMT References: Organization: Apple Computer Inc, Cupertino, CA Lines: 22 In article wb1j+@andrew.cmu.edu (William M. Bumgarner) writes: >I'm in the process of converting a set of XFCN's from LSC to MPW C v3.0. > >The LSC code contained inline assembly to set-up and restore the A4 register >so that global (?) strings could be used... > >Something similar must be required in MPW C v3.0, but is A4 valid? Should I >use the same inline code (code that worked under a different environment)? If you compile with the -b option on MPW C, the strings are referenced off of the PC, which means that you don't need to worry about strings. However, global variables are out. ----------------------------------------------------------------------------- | Glenn L. Austin | The nice thing about standards is that | | Apple Computer, Inc. | there are so many of them to choose from. | | Internet: austing@apple.com | -Andrew S. Tanenbaum | ----------------------------------------------------------------------------- | All opinions stated above are mine -- who else would want them? | -----------------------------------------------------------------------------