Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1044169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:47:03+00:00 2026-05-16T15:47:03+00:00

In MSVC, the Base Address Randomizaiton is a default option.(Since VS2005?) So, I do

  • 0

In MSVC, the Base Address Randomizaiton is a default option.(Since VS2005?)

So, I do not rebase manually the dll’s base address anymore.

But I rebased my all dlls to improve loading performance when I use VS2003.

If I use ASLR option, the loading performance is always decreased?
(Of cource I can get other benefits)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:47:04+00:00Added an answer on May 16, 2026 at 3:47 pm

    The short answer is no.

    On a system without ASLR (e.g. XP), loading a DLL at a non-preferred address has several costs:

    1. The relocations section has to be parsed and fixups have to be applied to the entire image.
    2. The act of applying fixups causes copy-on-write faults which are relatively expensive CPU-wise, and also force pages to be read from disk even if they are not referenced by the app itself.
    3. Every process that loads the DLL at a non-preferred address gets a private copy of every page that is written to, leading to increased memory usage.

    Items 2 and 3 are by far the biggest costs, and are the main reason why manually rebasing DLLs used to be necessary.

    With ASLR, fixups are applied transparently by the OS, making it look like the DLL was actually loaded at its preferred address. There are no copy-on-write faults, and no process-private pages are created. Also, fixups are applied only to the pages that are actually accessed by the app, rather than the entire image, which means no extra data is read from disk.

    In addition to that, manual rebasing schemes can’t prevent all base address conflicts (for example, DLLs from different vendors can conflict with each other, or an OS DLL could increase in size due to a hotfix and spill over into a range reserved for some other DLL, etc.). ASLR is a lot more efficient at dealing with these issues, so when looking at the system as a whole it can actually improve performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since VS2008(Is it right?), MSVC linker option has a Base Address Randomization. What the
I'm using MSVC and it seems like the code below does not crash and
In MSVC, DebugBreak() or __debugbreak cause a debugger to break. On x86 it is
i did this in msvc 2005. typedef void (*cleanup_t)(); void func(cleanup_t clean) { cleanup_t();
I know MSVC can do this via a pragma message -> http://support.microsoft.com/kb/155196 Does gcc
I'm tyring to convert a MSVC project from VS 2005 to VS 2008. It
How do you get Pro*c to work within MSVC 6? In otherwords compile a
I have a static library *.lib created using MSVC on windows. The size of
I am reviewing the flags we have for our MSVC projects, and I can't
I'm trying to create a c++ library for use on windows/MSVC. My problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.