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

My C oriented VM now on Linux

62 views
Skip to first unread message

Dave Dunfield

unread,
Nov 17, 2021, 4:00:24 PM11/17/21
to
In case anyone is interested...

I've recently posted a Linux version of "Dunfield Virtual Machine"
"DVM" was mentioned a bit here in the "Programming exercise/challenge"
thread...

In case you are not famillier:
DVM is a Virtual Machine I created a little which back which is based
on my own "C-FLEA" a custom CPU design which is a good combination of
quite simple, and a fairly optimal target for my C compiler.

It allows you to build simple to fairly complex tools in C and run them
(without change / recompile etc.) on Windows and now Linux.

This is quite unlike most other virtual machines:

- Interacts directly with/on the HOST OS. You don't have to run a
virtual environment, simply use "DVM" as a prefix to running .DVM files.
Command line arguments etc. all pass through "as expected".

- Handles differences in file systems as simply and compatibility as
possible. All of the tools I've ported to DVM work on both Windows and
Linux without change.

- Integrates my own Micro-C library, provides most of the capabilities
you might want in tools and utilities.

- Single fairly small executable, does NOT have to be "installed", does
not require "runtime" libraries... You can simple copy the one executable
to whatever system you happen to be using and "just run" it.

ps: (Things not to complain about because I won't listen)
Yes my compiler is "old school". I wrote it back in the 80's.. you
won't see a typical "tons of stuff" modern develoement package with
megs of programs and supporting file all the while with documentation
"on the web". My setup is just over 1/2meg of which 430+k is documents
(Hopefully you can figure out the obscure and unusual format called "text" :-)

pps: to give you an idea of what to expect from DVM/C-FLEA/Micro-C,
here are the sizes of something (my "EDT" text editor) which I have
ported to DOS/DVM/Windows/Linux using different compilers:
DOS Turbo-C 17,138
Win32 LCC 28,584
Linux32 GCC32 28,392
Linux64 GCC64 42,256
DVM Micro-C 8,579

Just FYI! - Dave

"Dave's Old Computers" -----or-> ++Ltrs: aA0=bB1 zZ9=aA0, then b=: s=/ z=.
see "personal" at bottom. -----> gssoarrvvvyctmehdkcysgdlhmcezbsnqxybnl

Anton Shepelev

unread,
Jan 7, 2022, 11:57:36 AM1/7/22
to
Dave Dunfield:

> ps: (Things not to complain about because I
> won't listen) Yes my compiler is "old school". I
> wrote it back in the 80's.. you won't see a
> typical "tons of stuff" modern develoement
> package with megs of programs and supporting
> file all the while with documentation "on the
> web". My setup is just over 1/2meg of which
> 430+k is documents (Hopefully you can figure out
> the obscure and unusual format called "text" :-)

This is the way of lean software, and I rather
like it. No wonder I liked your contribution to
the programming exercise. I wanted to have a look
at the externals and internals of your text
editor, but it seems closed-source and unavailable
for direct download. I am also interested in
hearing about your development setup, including
the build system, debuggin, and integration of
everything with the text/code editor.

--
() ascii ribbon campaign -- against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]
0 new messages