On 18 Aug 2004 01:32:13 -0700, surrel@[EMAIL PROTECTED]
(Yves Surrel) wrote:
>My concern is today: what about system-independence, more precisely
>Wintel-independence? As you probably knows, Win32Forth and Mops are
>very close. I mostly used the former, I mentioned why, although I have
>a very good feeling about Mops (e.g. Mops allows multiple inheritance,
>W32F does not).
>
>I regret that both systems are too intricately relying on 1) the
>processor type 2) the operating system 3) the windowing system. I
>would be very happy with an architecture with layers separating:
We tried to do this with VFX Forth, which runs under i32, and
has an ARM prototype. There is a Windows version that generates
DLLs, and we have a prototype Linux ****t. A Neon OOP library
is included.
The CPU dependent parts are code generation, start up code and
OS interface. The code generator for VFX is about 5000 lines
of code. The start up and callback interface is a few hundred
lines, much of which has to with insulating the kernel from
OS dependencies at build time. In total the OS interface is
less than 30 coded routines.
The windowing system is a nightmare! I'd really like to
find a library with a C interface (to avoid the C++ name
mangling issues), but we have not yet found a stable one that
satisfies most users. The alternative is to use something
like Bernd Paysan's Minos/Theseus system.
Stephen
--
Stephen Pelc, stephenXXX@[EMAIL PROTECTED]
Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeltd.demon.co.uk
- free VFX Forth downloads


|