[fpc-devel] OO rewrite - technical questions
Michael Schnell
mschnell at lumino.de
Mon Jul 26 10:09:06 CEST 2010
On 07/24/2010 04:55 AM, Hans-Peter Diettrich wrote:
>> With most archs all static variables (such as globals and threadvars)
>> always are accessed relative to a register. With X86/32 globals and
>> statics are allocated relative to DS,
>
>
> Here the segment register is somewhat irrelevant, since each maps to
> the entire 4 GB process address space. All 32 bit "pointers" simply
> are offsets into that address space, like in any other unsegmented
> architecture. The only difference may be access rights (CS:
> executable, read-only).
X86/32 always uses a segment register to access memory, If none is given
explicitly DS or SS is used appropriately.
-Michael
More information about the fpc-devel
mailing list