Speed improvements with /OPT:WIN98 on Windows XP?


Just something I have been unable to find on google, and the like.

Is there speed improvements with /OPT:WIN98 on windows XP?


"WIN98 and NOWIN98 control the section alignment in the final image. For Windows 98 applications, it is optimal to align sections on a 4K boundary to improve load time (allows Windows 98 memory manager to cache executable images with a minimum of wasted space). This is on by default in the linker, so you need to specify /OPT:NOWIN98 to get a trimmed-down (but slower on Windows 98) version of the application."

Now if I set my program's DLL to link with that, how much faster will it run, compared to something that has the option set as no?

Are there any benchmarks that I can look at?
Who is Participating?
BigRatConnect With a Mentor Commented:
>>Now if I set my program's DLL to link with that, how much faster will it run


>>Are there any benchmarks that I can look at?

Not that I know of.

I used to use this option back in the old days for the C++ programs I ran on Win98. These machines then had little memory and optimising memory performance was in those days vital. Of course the image caching was very useful in things like CGI where the executeable was continually being loaded and unloaded and in this sense the programs ran faster. It also applies to DLLs which may be loaded by different programs during the session and in that sense the program's start up time would be smaller. Since all COM objects are also loaded from DLLs any COM objects created internally in programs would also benefit from this caching. Clearly the caching (or the elimination of the load process) is sooo application specific it was difficult to give and real benchmarks.
amckernAuthor Commented:
Ok thanks

Its a dll for a Half Life 2 (Source) mod, and i'm just trying to let the level designers get that extra detail, by speeding up the DLL.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.