Reply 20 of 25, by weedeewee
analog_programmer wrote on 2023-12-29, 19:25:weedeewee wrote on 2023-12-29, 18:06:analog_programmer wrote on 2023-12-29, 17:16:OK, maybe this also explains what I asked for the environment variables place in AUTOEXEC.BAT file. So, is it a good idea to move everything except common env. variables from AUTOEXEC.BAT into CONFIG.SYS if not using menu items options and (just for example) SHELL/SHELLHIGH=COMMAND.COM /E:4096 at last row in CONFIG.SYS?
It's been a long time since I played around with it, so i'm not 100% certain about it.
I think setting the environment size to 4k like in your example would make any TSR use ~4K more memory when loaded from dos or command prompt.4 KB space for env. variables is just random value for my command-line example, but I'm interested in the other part of the question: Will it be better, if all device drivers and TSRs are moved in CONFIG.SYS before all the standard DOS variables (at the bottom lines of the very same configuration file) with SHELL(HIGH) at the last place as AUTOEXEC.BAT will contain only common variables as for soundcards settings or similar (some "drivers" for these are not real drivers/TRSs, but registers initializing executables)? Or what's the optimal structure for DOS configuration files?
I don't know. All I remember is that during config.sys the environment size is minimal. I doubt that the location of the environment variables in autoexec.bat has any influence on the size of the environment memory, though I may be ignorant due to all the versions.
Also loading TSRs from config sys will make them unable to be unloaded (if at all possible). Something that is still possible when loaded from autoexec.bat if unloaded in the correct order, eg LIFO.
eddman wrote on 2023-12-29, 18:20:Is this wrong then, or I'm not understanding it correctly?
In the past, INSTALL may have saved you a little bit of memory because it does not create an environment when it loads a program. With DOS 6.0 an environment is created, so the extra memory is no longer gained by using the INSTALL command (memory-resident programs can still be loaded from the AUTOEXEC.BAT file).
If this is true, it makes non-sense from all the DOS 6.22+ variable space INSTALL(HIGH) savings and arrangements in CONFIG.SYS and AUTOEXEC.BAT files. I have to try how it will exactly work in MS-DOS 7.10.
I think that information is partially correct. meh, best to test it.
Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port