Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Q] Abs addressing in gForth

1 view
Skip to first unread message

JC

unread,
Oct 8, 2004, 2:11:56 AM10/8/04
to
Hi,

I am running gForth under Windows 2000. Does anyone try to
do some absolute addressing under such environment in gForth?
Thanks.


Gary Chanson

unread,
Oct 8, 2004, 2:33:04 AM10/8/04
to

"JC" <jess...@comcast.net> wrote in message
news:CcqdnSBBqv4...@comcast.com...

> Hi,
>
> I am running gForth under Windows 2000. Does anyone try to
> do some absolute addressing under such environment in gForth?

What do you mean by "absolute addressing"? I don't know the gForth
model but I assume that it's a Win32 program where an address is an absolute
virtual memory address within the process's own virtual machine. If you're
trying to access real memory addresses, you can't do that in a Win32 user
program.

--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gcha...@mvps.org

Krishna Myneni

unread,
Oct 8, 2004, 9:24:55 AM10/8/04
to
Gary Chanson wrote:
> "JC" <jess...@comcast.net> wrote in message
> news:CcqdnSBBqv4...@comcast.com...
>
>>Hi,
>>
>>I am running gForth under Windows 2000. Does anyone try to
>>do some absolute addressing under such environment in gForth?
>
>
> What do you mean by "absolute addressing"? I don't know the gForth
> model but I assume that it's a Win32 program where an address is an absolute
> virtual memory address within the process's own virtual machine. If you're
> trying to access real memory addresses, you can't do that in a Win32 user
> program.
>

Accessing physical memory addresses is, of course, possible under
Linux. But under Win32, I believe there are some hacks to
accomplish this. The method involves using something called
"call gates" --- a long time ago I looked into this and then
quickly switched to Linux. Anyway, the following link appears to be
relevant, and you can try searching on the above terms.

http://www.minithins.net/releases/p59-0x10.txt

Good luck.

Krishna


Gary Chanson

unread,
Oct 8, 2004, 3:12:05 PM10/8/04
to

"Krishna Myneni" <krishn...@compuserve.com> wrote in message
news:ck5svp$g6u$1...@ngspool-d02.news.aol.com...

True but it is a rather dirty hack which depends of functionality which
I believe will only work in an account with administrator privileges so it's
not strictly a user program and may not be supported in future versions of
the OS.

0 new messages