Memmory allocated by CPU
-
Hi, Why CPU allocates allocate the memory region, rounded to a 64 KB boundary? Regards, Chandan
-
Hi, Why CPU allocates allocate the memory region, rounded to a 64 KB boundary? Regards, Chandan
It's not the CPU allocating memory. It's the operating system and the run time. You've not made mention of what mobile technology you are using (Symbian, Windows Mobile, ...?) so I can't give you the specifics. But memory is always allocated from the OS in blocks. The size of those blocks will vary with the OS and it sounds like the OS that you are using allocates memory in 64kb blocks. If you allocate memory on a desktop it will also be allocated in blocks of a certain size. The size of the block may also vary depending on the runtime you are using. For example, code written against one runtime may cause that run time to acquire a block of memory from the OS and then divide that block into smaller blocks to give to your program as needed. You'll want to do some reading on memory allocation algorithms to get a complete description of what is occurring.
Joel Ivory Johnson
Meet my dev team: RDA Architecture Evangelist Team Blog
My site: J2i.net
-
It's not the CPU allocating memory. It's the operating system and the run time. You've not made mention of what mobile technology you are using (Symbian, Windows Mobile, ...?) so I can't give you the specifics. But memory is always allocated from the OS in blocks. The size of those blocks will vary with the OS and it sounds like the OS that you are using allocates memory in 64kb blocks. If you allocate memory on a desktop it will also be allocated in blocks of a certain size. The size of the block may also vary depending on the runtime you are using. For example, code written against one runtime may cause that run time to acquire a block of memory from the OS and then divide that block into smaller blocks to give to your program as needed. You'll want to do some reading on memory allocation algorithms to get a complete description of what is occurring.
Joel Ivory Johnson
Meet my dev team: RDA Architecture Evangelist Team Blog
My site: J2i.net
Thanks for all evden eve nakliyat please go on