(50g) FNINVARS: Object finder for couch hackers
|
10-11-2017, 08:38 PM
Post: #5
|
|||
|
|||
RE: (50g) FNINVARS: Object finder for couch hackers
(10-11-2017 06:50 PM)rprosperi Wrote: I'm sure it's a simple thing, but anyone know why these are different? When given a global ID as an argument, the BYTES command on a rev. 2.15 50g calls the internal code for VARSIZE, a SysRPL command. VARSIZE is where the discrepancy comes in, as it very specifically adds a constant 9 nibbles (4.5 bytes) to the memory used by the characters of the global ID to sum up the final byte count. I'm not sure if other O/S versions are the same, but that's where the "4.5 + n chars" comes into play, at least on that system. I would be inclined to call that a bug, as the size of a global identifier is definitely "3.5 + n chars". The only reason I can think of adding anything in addition to the global ID size would be if you wanted to include the stack pointer as well, but that would be an additional 2.5 bytes, not 1. So that wouldn't explain the difference. For the curious, here's the code of the VARSIZE command (with some comments added). Even if you're not all that familiar with SysRPL, you can probably follow along with what it's doing: Code: :: |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(50g) FNINVARS: Object finder for couch hackers - Joe Horn - 10-11-2017, 05:36 AM
RE: (50g) FNINVARS: Object finder for couch hackers - Gerald H - 10-11-2017, 07:06 AM
RE: (50g) FNINVARS: Object finder for couch hackers - pier4r - 10-11-2017, 03:31 PM
RE: (50g) FNINVARS: Object finder for couch hackers - rprosperi - 10-11-2017, 06:50 PM
RE: (50g) FNINVARS: Object finder for couch hackers - DavidM - 10-11-2017 08:38 PM
RE: (50g) FNINVARS: Object finder for couch hackers - rprosperi - 10-12-2017, 02:21 AM
FLIBS: Library Finder for couch hackers - rprosperi - 10-16-2017, 12:01 AM
|
User(s) browsing this thread: 1 Guest(s)