Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too big EXE file, is there a remedy?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00262751
Message ID:
00265163
Vues:
50
>>>>>Just as a side note...I just ran an old QB program that uses various ROM BIOS interrupts to determine what's on the system (DOS version, hard drives, mouse, numeric co-processor, etc.). With the exception of it not recognizing the floppy type (it's one of those newer high capacity types) and it not being able to properly calculate the free and total disk space, it seems to work fine.
>>>>
>>>>NT virtualizes the environment for DOS systems, so if you use standard calls within a DOS session, you should be able to get most functionality. If you don't go through the standard interfaces and try to get at the raw hardware, that's where you'll be beaten to a loddy pulp...
>>>
>>>What about Win9x? That's what I was doing this under.
>>
>>Win9x to some extent virtualizes BIOS code access; in fact, what it does is drop the system briefly out of protected mode, at a tremendous cost in terms of system performance (if you remain in real mode for any amount of time, you risk losing interrupts that are only serviced by protected mode ISRs, and it costs a lot of cycles to switch in and out of real mode. This is exactly the performance hit you see when a non-compliant disk forces Win9x to operate in MS-DOS compatibility mode; in addition to mode switch overhead, only one task can have BIOS I/O services invoked at one time, since the AT BIOS doesn't serialize access itself, and uses a number of static memory references which just about guarentee that the code will smash itself up if it's being accessed by two independent tasks at once...
>
>Thanks, Ed. All of this explains the tremendous performance hit I've experienced recently while running a DOS based program.

There's a very good discussion of this in the Win98 Resource Kit (it's available from Microsoft, and is definitely included in the MSDN docs, as well as a good discussion of how to optimize Win98 performance with DOS apps. If your primary platform is Win98 and you have performance or configuration issues with DOS apps, networks and the like, the Resource Kit provids solid references on the ins and outs of tweaking Win98, as well as a solid discussion of the underpinnings of the operating system.)

I'd recommend picking up the resource kits for all the platforms you work with routinely; the utilities and docs are invaluable. The Office 2000 Resource Kit has the only real details on how the Setup Wizard configuration files work (it's the same basic tool; I've not explored the new installer details, but th3ey're in there as well...)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform