Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!zaphod.mps.ohio-state.edu!samsung!uunet!iconsys!ohs!stay From: stay@ohs.UUCP (Steve Taylor) Newsgroups: comp.sys.mac.programmer Subject: Absolute address to strs in Think C Keywords: strs Message-ID: <583@ohs.UUCP> Date: 8 Sep 90 00:16:10 GMT Organization: Orem High School, Orem, Utah Lines: 22 The Think C manual says (page 75): "When the Separate STRS option is on, THINK C uses a 4 byte absolute address to access the string literals and floating point constants." Speculation: Since the string literals and fp constants are loaded into the heap (and locked), and since any reference to things in this heap object are not absolute until that point, then all of those absolute references must be set then, after the literals are loaded. This also means (since code is being changed) that they have to be re-set every time a code segment with references to the string literals is unloaded and loaded, which means either Think C is keeping careful tabs on the segment loader (a patch?) or the segment loader is actually doing the work. If ANY of this is correct, my question is: Where, exactly, do the absolute references get set? Thanks. -- Absolute Truth is on vacation, and I'm filling in. ------------------------------------------------------------------------------- Steven H. Taylor stay@ohs.uucp trACE(tm) Development, Alpine School District.