|
Authored by: Anonymous on Tuesday, May 15 2012 @ 02:35 AM EDT |
Even more to the point he's just said that standard indirection is a symbolic
reference!
add 123
That's an add instruction on a hypothetical stack machine.
look up the value at 123 then add it.
That's indirection, and in C it looks like this:
int y = 5;
int * yPointer = &y;
int * yPointerPointer = &yPointer;
int x = 1 + **yPointerPointer;
He's claiming that THIS compiled to machine code would be a symbolic reference
since the numeric memory address stored in yPointerPointer doesn't point to
data, it points to another pointer.
However the term "resolve" is suspect. To resolve a symbolic
reference you search through a table, you don't jump around to pre-defined
references.
The bytecode mimics machine code for data structures with pointers.
Pointers are Symbolic References?! FIRE THE MAN HE'S DAFT.
-- The basis of [ Reply to This | Parent | # ]
|
|
Authored by: Anonymous on Tuesday, May 15 2012 @ 03:12 AM EDT |
Oh, numbers can be symbolic references, but Dalvik doesn't use them that way.
E.g. hash codes are symbolic references.
Mitchel is disingenuous though,
when he intentionally confuses an index with a reference.[ Reply to This | Parent | # ]
|
|
|
|
|