answersLogoWhite

0


Best Answer

A program written in native 32 bit Windows format is created in what is called FLAT memory model that has a single segment, which contains both code and data. Such programs must be run on a 80386 or higher processor.

Differing from earlier 16-bit code that used combined segment and offset addressing with a 64 Kb segment limit, FLAT memory model works only in offsets and has a range of 4 Gigabytes. This makes assembly code easier to write and the compiled (assembled) code is generally a lot faster than the equivalent 16-bit code.

All segment registers are automatically set to the same value with the flat memory model. This means that segment / offset addressing must NOT be used in 32-bit programs that run in 32-bit Windows operating systems.

For programmers who have written code in DOS, a 32-bit Windows PE (executable) file is similar in some respects to a DOS COM file - they have a single segment that can contain both code and data and they both work directly in offsets. That is, neither uses segment / offset addressing.

Flat-model assembler code defaults to NEAR code addressing and NEAR data addressing within the range of 4 gigabytes.

The FS and GS segment registers are rarely (if ever) used in application programs but may be used in some instances by the operating system itself.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is flat memory model?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do most Intel CPU's implement a flat memory model?

Modern Intel chips (since at least 1990) support a flat memory model, if the OS so chooses to use it. Practically all modern OSes use that memory mode, as a flat model is simpler to deal with in software than a segmented model.


Difference between multistore and working model memory?

what is the difference between the memory store model and the working memory model?


What model of memory represents information as flowing from one system to another?

The Modal Model of Memory, also known as the Atkinson-Shiffrin model, represents information flowing from sensory memory to short-term memory and then to long-term memory. This model describes how information is transferred and processed between different memory systems.


What are the similarities between the working model of memory and the multi store model?

Both the working model of memory and the multi-store model involve the concept of separate memory systems for different types of information. They both propose that information is processed through different stages before being stored or forgotten. Additionally, both models emphasize the role of rehearsal in transferring information between memory stores.


Do flat screen tv monitors store memory?

No.


For an application that exceeds 64k the memory model should be?

For an application that exceeds 64k, the memory model should be huge.


What is the model of the iPad with maximum memory?

That's a 64GB Model.


What is the three stage model of memory?

sensory menory-->short-term memory--> long term memory


Which corporations have changed from tall to flat model?

how tall do you have to be to be a model?how tall do you have to be to be a model?how tall do you have to be to be a model?how tall do you have to be to be a model?


Using the DOS memory model the first 640K of memory is known as what?

SEMI


How much is the blackberry playbook?

In the States, the prices are $499.99 for 16G memory, $599,99 for 32G memory and $699.99 for 64G model. In Canada, the prices are $499.95 for 16G memory, $599,95 for 32G memory and $699.95 for 64G model.


Is the memory supported by my card reader?

It all depends on what make and model memory card you have