far pointers...

S

Shraddha

I read about far pointers on net...I got the idea about that...nut
still I am unable to imagin any example where we desperately need
it...

Can anyone tell me where we can use it by using an example...
 
C

Chris Hills

I read about far pointers on net...I got the idea about that...nut
still I am unable to imagin any example where we desperately need
it...

Can anyone tell me where we can use it by using an example...

FAR pointers are used to access something FAR away... too far to reach
with an ordinary pointer

It must be the start of another semester judging by all the homework
questions that are popping up. What ever happened to research, reading
the manuals and trying something yourself..... I'm starting to sound
like my dad now!
 
B

blufox

I read about far pointers on net...I got the idea about that...nut
still I am unable to imagin any example where we desperately need
it...

Can anyone tell me where we can use it by using an example...

We do not use it.
Far concept is an age old concept which is dead now.
Ansi C does not have any notion of Far or near pointers.

If you are using some pre historic 16 bit compiler, better dump it.Its
of no use.
Switch to a modern 32 bit compiler.

Thanks
--pradeep
 
C

Chris Hills

We do not use it.
Far concept is an age old concept which is dead now.
Ansi C does not have any notion of Far or near pointers.

If you are using some pre historic 16 bit compiler, better dump it.Its
of no use.
Switch to a modern 32 bit compiler.

Thanks
--pradeep

I have some very modern compilers with FAR pointers. They do not target
DOS or WInTel though.

You have assumed the OP is targeting Windows. There are many other RTOS
and architectures out there
 
L

llothar

We do not use it.
Far concept is an age old concept which is dead now.

I whished the 64 bit systems had introduced an optional NEAR/FAR mixed
memory modell.

Depending on the data modell it might be very helpfull to avoid the
memory blow for 64 bit programs.
 
D

David Tiktin

I whished the 64 bit systems had introduced an optional NEAR/FAR
mixed memory modell.

Depending on the data modell it might be very helpfull to avoid
the memory blow for 64 bit programs.

You're right that for many programs, there's no advantage to being
compiled for 64-bits and possibly real disadvantages. But most 64-bit
systems will happily run 32-bit binaries. I hope and pray that memory
models stay _FAR away from me! ;-)

Dave
 
V

Vinoj

I read about far pointers on net...I got the idea about that...nut
still I am unable to imagin any example where we desperately need
it...

Can anyone tell me where we can use it by using an example...

In 16bit DOS, Far Pointer is 16bits:16bits which is 32-bits, in 32-bit
WIndows far pointer is 16bits:32bits which is 48-Bits.


-Vinoj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top