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 9218417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:51:34+00:00 2026-06-18T02:51:34+00:00

How is allocation handled within a C++ compiled EXE? Is the allocation manager baked

  • 0

How is allocation handled within a C++ compiled EXE? Is the allocation manager baked into the app making it impossible to track allocations / unallocations if you don’t have the code? Or is there a WinAPI call or something similar for memory allocation?

  • 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-06-18T02:51:35+00:00Added an answer on June 18, 2026 at 2:51 am

    The basis for the memory allocation is indeed some WinAPI call (typically the Heap functionality). These are “hidden” behind the operator new and malloc and other related functionality. You should be able to identify the calls to the Heap Functions, but there are probably several layers of functions between the raw heap and the actual memory allocation call.

    Edit: Clearly, if the program is compiled to use the C runtime as a .DLL, the code to actually perform the allocation is not in the executable at all – it would be in the DLL.

    And of course, it’s interely possible that the programmer who wrote the code:
    1. didn’t use C/C++, in which case all bets are off.
    2. wrote their own version of memory management in some way, using for example VirtualAlloc

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

Sidebar

Related Questions

I was just looking into the memory allocation of a program in C .
I have 3 questions concerning memory allocation that I thought better to put into
How does C#, or other languages for that matter, handle memory allocation (and memory
Looks like dynamic memory allocation without garbage collection is a way to disaster. Dangling
I am trying to understand the stack allocation of pthreads library in Linux. Here
I'd like to ask about memory allocation in 64-bit ubuntu Linux. I have the
Here I'm gettimg memory allocation problem at activity indicator and my code is: -
Whatever size i give to it while allocation, it shows fixed size only. Is
I thought these two methods were (memory allocation-wise) equivalent, however, I was seeing out
I want to measure time memory allocation using this code: long AForMemory = DateTime.Now.Ticks;

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.