Posted: Thu Aug 16, 2007 1:22 pm
What does GCC do with FS and GS?
And is there no way at all of accessing data off another segment in C in pmode?
And is there no way at all of accessing data off another segment in C in pmode?
probably depends on which version, but as i understand, GCC avoids using FS and GS, as some OSs use them for accessing process structures (and one of the fast syscalls (dont remember which one) requires it for something)pacman wrote:What does GCC do with FS and GS?
there isnt supposed to be... the compiler is supposed to hide all implementation specific details (such as how the CPU handles memory) C itself doesnt even dictate how large pointers are (on some systems for example, a pointer could be 18bits or 84 bits or any other number and any properly conforming c code would compiler without issue)And is there no way at all of accessing data off another segment in C in pmode?