Mail Archives: djgpp/1992/07/27/12:05:42
>On the other issue the text should start at 0x1020 and not 0x20. This is because
>the first page of memory(4K,0x1000) is left unallocated forcing any referances
>to it to cause a page fault, so that null pointer referances will cause
>a trapable error.
To make this statement official and clear it up a bit: All file
references are read at 4k boundaries - always whole sectors. Paging
always happens on page boundaries. Thus, the first 4096 characters of
the actual file are loaded into the *second* 4096 bytes of program
space. Thus, the byte at 0x20 in the file is loaded at 0x1020 in
virtual space.
DJ
dj AT ctron DOT com
Life is a banana.
- Raw text -