Best Answer


User Avatar

Wiki User

โˆ™ 2006-02-18 04:11:23
This answer is:
User Avatar
Study guides
See all Study Guides
Create a Study Guide

Add your answer:

Earn +20 pts
Q: How do you print a far pointer value in a C programming environment using small memory model?
Write your answer...
Related questions

What is near pointer?

In the segmented memory model, a near pointer is a memory address that resides in the same segment as the current segment pointer. It had half the memory requirements of a far pointer (which stored the segment and offset, instead of just the offset), but was limited to 1/65536th the maximum distance of the memory that could be referenced. Since the introduction of the flat memory model, all pointers are near pointers, because segments are no longer used in the segmented model addressing. Instead, segments are used for task gates (protected memory), so no normal program would ever access a segment directly. A developer would only need to worry about "near" and "far" pointers on 386s and older processors. It should be noted that other system architectures, such as PowerPC, RISC, and so on, all do not have the concept of segmented memory, and so do not have near or far pointers at all. Instead, all pointers are of the same size and can address any memory location.

What is far and near pointer and how are they used?

It is a matter of the memory model you are using. On old or embedded systems, some memory was outside of the range of a normal pointer. If you have 4 megs of ram you need at least a 22bit pointer to see all of it. But let's say you only have a 16 bit pointer. This means you can only access the first 65K of ram. Odd as it may sound, this was a problem on old computers, and is sometimes an issue on embedded devices with limited processing power. The near and far classifications were a solution. Pointers are near by default. In my example above, the 65K of ram would be accessed with a near pointer. To get past that 16 bit limit, you need a far pointer. Thus: memory within the pointer's range is near. Memory outside of the range is far. Near pointer: char near * ptr; Far pointer: char far * ptr;A far pointer uses both the segment and the offset address to point to a location in memory. A near pointer in contrast uses only the offset address and the default segment. The far pointer can point to any location in memory, whereas the near pointer can only point to a nearby local address.Something that was important 20 years ago. Now you can forget it.

What is the use of huge pointer in C?

It has to do with the memory model you are using... If you are using the LARGE or HUGE memory model, then you use HUGE memory pointers. == Huge pointers are like far pointers, just more so: they are always normalized (ie offset part is between 0 and 15), and segment wrapping-around do not occur if you use them.

Difference between multistore and working model memory?

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

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

Both the working model and the multi-store model of memory acknowledge the existence of three main components of memory: sensory memory, short term memory and long term memory.

What are advantages of shared memory?

The basic adwantage of shared memory model is that the programming for IPC becomes simple in the sense that we simply write and read to an address pointer available in the our process address space. We need not use system calls like write and read. The updations to the kernel resident shared memory object is done by the kernel asynchronously. It saves lot of time compared to write and read because in write and read lot of switching should take place between user mode to kernel mode vice versa.

What is shoket programming in networking?

you mean "socket programming". it is an programming model which used socket to represent connection points in some network

Why far pointer is not there in Linux?

Pointer types are very specific to the compiler used and oftentimes subject to the target architecture. The concept of a near/far differentiation may not have any meaning on the memory model of your target. This has nothing to do with Linux or whatever OS you choose to use. More information should be provided with the documentation of your compiler.

Why stack pointer is 16- bit register?

The stack pointer is a 16-bit register because that is how Intel designed the chip.Memory in the 8085 and 8086/8088 is organized as a 16-bit addressable entity, and they wanted the stack to be locatable in any part of memory, so the stack pointer had to have equal addressible range as any other register.Do not confuse this with the 20-bit segmented architecture of the 8086/8088. Program addressible space and execution model is still 16 bits.

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

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

Who are the author the visual basic?

Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. VB is also considered a relatively easy to learn and use programming language, because of its graphical development features and BASIC heritage.

Can somebody post a good model and good programming solutions for fll world class?

There is not a way to post a good model and good programming solution. You will have to make your own post.

What is the model of the iPad with maximum memory?

That's a 64GB Model.

What is the MapReduce programming model used for?

MapReduce programming model is used for processing large data sets. The program has a map and reduce procedure to distribute servers and running various tasks.

What is far pointer and where we use it?

far pointer can access memory that is larger than 64kb, sometimes, such as when dealing withvideo memory, a needful thing.Hello, it's 2011 now -- use a 32-bit compiler and forget about 16-bit DOS systems like TurboC. (But if you absolutely have to use TurboC, use Large model (or Huge), and forget about near and far).

Is programming a bluetooth gps receiver as easy as programming my older model gps receiver?

Programming a bluetooth GPS receiver is a rather simple process that can easily be accomplished by following the step by step instructions in your owner's manual. Each model is different, so you will want to consult the owner's manual for instruction specfic to your model.

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


What is the definition of object-oriented programming?

Object-oriented programming is a programming model that uses objects that have attributes whereby methods determine how the objects behave. Object-oriented programming languages include Java, PHP and C.

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.

What is the three stage model of memory?

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

Is the memory supported by my card reader?

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

Need programming instructions for Noma Model 1506 timer?

instruction noma 1506

How do you program a regency scanner model R1040?

Programming scanner r1040

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.

What sized memory card does the lg shine take?

That model was released in 2007 did not have a memory card