I have been beavering away, on my compiler/interpreter; and got a good
way in but hit a snag over file i/o, especially performance. What I
want is a pure "Eu" version of file i/o (open, getc, gets, puts, seek,
where, flush ,close) which uses the windows API (ie GetStdHandle,
CreateFile, ReadFile, WriteFile, SetFilePointer, FlushFileBuffers,
CloseHandle, etc).
ie:
function open(sequence filename, sequence mode)
...
r=c_func(xCreateFile,...
Should you accept this challenge, I believe your first attempt will be
over one hundred times slower than native i/o; what I really want is
buffered i/o (perhaps) to get that down to say 4..10 times slower,
before I try again to translate to asm.
If anyone is interested, let me know. If necessary, I can throw you a
few files to get you started, but doing so might lead you up the same
blind ally I have gone down so it might be better not to.
Regards,
Pete
|