473,796 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use Real 1GB and Fake 3GB Memory?

I work emulator project using 32 Bit emulated processor. The problem is
that it attempts to allocate 4GB memory because some people want to use
emulated instruction to read data from 4GB memory. It is always not
necessary because it can waste a lot of memory.
There is a way to create pointer list. Emulator project can only
allocate less than 1GB memory that it is always enough. One GB memory is a
real memory. Then, it can allocate only 64K memory which it is a fake
memory. Fake 64K memory can be mapped to 3GB memory while real 1GB memory
can be mapped to below 1GB memory. It is done through pointer list.
The best is to create pointer list that can only limit to 262,144 bytes
because pointer is only 4 bytes. 16384 pointer list can be mapped to real
1GB memory while 49152 pointer list can be mapped to fake 3GB memory. It is
used to map each 64K page only.
Please provide your opinion. Do you think that pointer list should be
enough to hold 262,144 bytes to map 4GB memory through 64K pages? If you
want only 4K bytes in page or 256 bytes in page, pointer list will enlarge
to 1MB for 4K byte in this page and 16MB for 256 bytes in this page. It is
how large pointer list can waste a lot of memory. Do you think that pointer
list with 262,144 bytes should be enough?

Thanks...
Bryan Parkoff
Jul 23 '05 #1
1 2066
Bryan Parkoff wrote:
I work emulator project using 32 Bit emulated processor. The problem is
that it attempts to allocate 4GB memory because [...]
Please provide your opinion. Do you think that pointer list should be
enough to hold 262,144 bytes to map 4GB memory through 64K pages? [...]


Is there a C++ language question I am not seeing here? I am genuinely
curious because I thought I understood the topicality as it applied to
comp.lang.c++, and I am starting to doubt myself.

Thanks.

V
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4969
by: news | last post by:
There's all kinds of ways to validate an email address to make sure it's well formed and whatnot, but what about checking to see if it's a valid e-mail account? Like how you can use checkdnsrr() to check to see if a URL is valid. I know finger used to be used at one time, no? But server block finger requests, and I'm not sure many e-mail accounts out there are even fingerable type accounts anyway. Thanks for any suggestions!
2
2729
by: Mazin | last post by:
I wanted a progress bar for my webpage, where I have numerous embedded sounds. Can Javascript detect which ones are done and possibly how much is loaded for each object? I searched for JS progress bars, but all I found were fake ones. Can anybody help me? Thanks
25
1804
by: Charles Law | last post by:
What I mean is, I want my web client to be updated in real-time. The scenario is that I have a database that is updated asynchronously, and when the update takes place I want to 'notify' my web clients so that they can display new information. This must be a push rather than a pull, so I don't want to use a timer on the client. Is there a way to do this? TIA
11
13007
by: Mike9900 | last post by:
How can I get the real system date/time if the user fakes the date, for example by setting the system date back. -- Mike
2
2484
by: Noel Mosa | last post by:
Hi, i have a file in memory in a char* string(which i read using buffered ifstreams from c++) and want to write a fake read() function for a C program that usually reads from files. What id like to know is the following: how can i best copy the array to the buffer? can i for example just say:
16
10877
by: DirtyHarry | last post by:
Good day everyone. This sounds like a stupid question, but I became just curious yesterday, and I looked up several textbooks. However, no textbooks on computer language (that I have ) mentioned this. So I am asking to you, gurus... Is there any particular reason to call 'float' instead of 'real'?
1
1241
by: shayaran | last post by:
Hi! I recently found one hosting company offering 200GB hosting space, 2000GB bandwidth, unlimited MS SQL and multiple domain hosting in one single account powered by Cpanel. Can it be real or just another fake online promise? I saw its add @ http://www.freespacenet.com Can anybody guide me to know should I go for it or not?
22
2777
by: Bill Reid | last post by:
I just noticed that my "improved" version of sscanf() doesn't assign floating point numbers properly if the variable assigned to is declared as a "float" rather than a "double". (This never cropped up before, since I rarely use "float"s for anything, and hardly ever use the function for floating-point numbers in the first place; I just was messing around testing it for all cases and noticed a problem.) Anyway, it is declared and I...
2
1206
by: muddasirmunir | last post by:
I had recived teh following mail in my yahoo account today , please confirm me is it fake or real , what to do, the mail is Account Alert Dear Valued Member, Due to the congestion in all Yahoo account users and removal of all unused Yahoo Accounts,Yahoo would be shutting down all unused Accounts,You will have to confirm your E-mail by filling out your Login Info below after clicking the reply button, or your account will be...
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10455
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.