Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wednesday, 2013-07-31 at 14:29 +0200, Per Jessen wrote:
Carlos E. R. wrote:
Doesn't code use short or relative pointers?
No, not compiler generated code.
Curious. But is possible to use them, in assembler? Then it would be just the choice of compiler design.
Well, you can't use segmented addressing, but you could certainly write code to use relative pointers.
I don't know in Linux, but in MsDos you could choose the model of your code,
Linux uses the flat memory model:
Interesting. I have not done development in Linux, so I lost track of this. So it is not possible to choose the model per application.
Not possible and not needed either.
and there were several possibilities of code size, data size, etc. Pointers could be absolute or relative. The segment register could be fixed and play with normal registers only (in theory the
DOS ran in real mode, Linux runs in protected mode. In protected mode, you have access to the full 32bit address space, and the segment registers are more or less disabled, except FS and GS.
32 bit, not 64 bit? :-?
Yeah, both of course. -- Per Jessen, Zürich (24.7°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org