Speed improvements with /OPT:WIN98 on Windows XP?

Posted on 2006-05-14
Last Modified: 2010-07-27

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?
Question by:amckern
    LVL 27

    Accepted Solution

    >>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.
    LVL 2

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    A short article about problems I had with the new location API and permissions in Marshmallow
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now