Hi,
it is possible, to tell gcc to use the fs register directly for addressing variables in the pcr?
- Hartmut
At 20.31 01/11/2004, you wrote:
it is possible, to tell gcc to use the fs register directly for addressing variables in the pcr?
winnt.h defines the following intrinsic functions (and some analogues for other platforms, like PPC):
BYTE __readfsbyte ( IN DWORD Offset );
WORD __readfsword ( IN DWORD Offset );
DWORD __readfsdword ( IN DWORD Offset );
VOID __writefsbyte ( IN DWORD Offset, IN BYTE Data );
VOID __writefsword ( IN DWORD Offset, IN WORD Data );
VOID __writefsdword ( IN DWORD Offset, IN DWORD Data );
Maybe we could have something like these and wrap them in macros?