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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:05:25+00:00 2026-05-25T10:05:25+00:00

I have 3 questions concerning memory allocation that I thought better to put into

  • 0

I have 3 questions concerning memory allocation that I thought better to put into one question than 3.

  1. When memory is allocated as I understand, it is allocated on the heap, which is just 16mb. How hen do programs such as video games or modern browsers manage to use over 1GB?

  2. Since it is obviously possible for this much memory to be used, why can it not be allocated at the start? I have found the most I can allocate in High Level Assembly language is around 100MB. This is a lot more than 16MB, and far less than I have 3, so where does this limitation come from?

  3. Why allocate memory in the first place, rather than allocating variables and letting the compiler/system handle it?

  • 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-25T10:05:25+00:00Added an answer on May 25, 2026 at 10:05 am

    When memory is allocated as I understand, it is allocated on the heap,
    which is just 16mb. How hen do programs such as video games or modern
    browsers manage to use over 1GB?

    The heap can grow. It isn’t limited to any value and certainly not 16MB. You can easily allocate 1GB of heap, just make a program test and you’ll see.

    Since it is obviously possible for this much memory to be used, why
    can it not be allocated at the start? I have found the most I can
    allocate in High Level Assembly language is around 100MB. This is a
    lot more than 16MB, and far less than I have 3, so where does this
    limitation come from?

    I’m not sure why your OS isn’t filling larger allocation requests. Perhaps due to memory fragmentation? It’s going to be a problem specific to your setup, which you didn’t share. I can allocation much more memory than that without an issue.

    You can try to use the mmap system call if malloc (which uses the brk system call) is having some sort of issue. Note that for GNU libc, malloc actually uses mmap instead of brk when the allocation is large enough (over 128k I think).

    Why allocate memory in the first place, rather than allocating
    variables and letting the compiler/system handle it?

    Variable must live in memory somewhere. What you are saying is “why manually manage memory? Why can’t some algorithm do that for me?”. It is actually very common for the compiler and a runtime component to handle allocation/freeing – it’s called garbage collection.

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

Sidebar

Related Questions

I have some questions about basic CSS that I was unable to understand or
I have 3 questions concerning events: Should I always unsubscribe events that were subscribed?
I have a question concerning this code which I want to run on QNX:
I have a strange question concerning subroutines: As I'm creating a minimal language and
I know that the .NET memory model (on the .NET Framework; not compact/micro/silverlight/mono/xna/what-have-you) guaranteed
I have an .net app that seems to have a memory leak issue(s). The
I have a question concerning how the Unity container I have set up is
I have a question concerning volatile keyword I can't seem to find an answer
My question is about memory use and objects in actionscript 2. If I have
I have a script that appends some rows to a table. One of the

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.