Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

seven programming languages on one floppy (Developers)

posted by marcov, 04.04.2023, 10:49

> There are C interpreters. And the Forth thing you quoted said it compiled
> just in time too I think.

> So - what's wrong with either a C interpreter or something that compiles
> your C program before running it?

Does it actually reach the goal? IOW is the sourcecode (+ whatever you do with the libs) smaller than the compiled binary? My gut says that C is not expressive enough to make it a space efficient scripting language

> Also what's wrong with putting the C library in either the OS or in a DLL
> like msvcrt.dll? That will produce a small executable too.

Yes, but a single deployment (exe+dll) will be larger. Only multiple compiled files will actually save something. This due to unused code (by this program) in the DLL, and the DLL glue code itself.

Same goes for memory. If the DLL can't be shared in memory (and page out unused sections), the memory footprint of running multiple binaries will be larger in the memory.

> If you don't like even a few k for a hello world because of the executable
> overhead, then even that can be changed with a simpler executable format.

Small hello world is pointless in a dos forum, as there is always the hard to beat "echo" in the command interpreter. @echo<space> has 6 bytes overhead.

 

Complete thread:

Back to the forum
Board view  Mix view
22017 Postings in 2030 Threads, 395 registered users, 24 users online (0 registered, 24 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum