By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,385 Members | 1,763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,385 IT Pros & Developers. It's quick & easy.

far pointers...

P: n/a
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...

May 30 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
In article <11**********************@d30g2000prg.googlegroups .com>,
Shraddha <sh*************@gmail.comwrites
>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!

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

May 30 '07 #2

P: n/a
On May 30, 6:39 pm, Shraddha <shraddhajosh...@gmail.comwrote:
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

May 30 '07 #3

P: n/a
In article <11**********************@d30g2000prg.googlegroups .com>,
blufox <25**********@gmail.comwrites
>On May 30, 6:39 pm, Shraddha <shraddhajosh...@gmail.comwrote:
>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
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

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

May 30 '07 #4

P: n/a
On 30 Mai, 21:17, blufox <2500.prad...@gmail.comwrote:
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.

May 30 '07 #5

P: n/a
On 30 May 2007, llothar <ll*****@web.dewrote:
On 30 Mai, 21:17, blufox <2500.prad...@gmail.comwrote:
>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.
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

--
D.a.v.i.d T.i.k.t.i.n
t.i.k.t.i.n [at] a.d.v.a.n.c.e.d.r.e.l.a.y [dot] c.o.m
May 30 '07 #6

P: n/a
Shraddha <sh*************@gmail.comwrites:
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...
<http://www.google.com/search?q=%22far+pointer%22>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
May 30 '07 #7

P: n/a
On May 30, 6:39 pm, Shraddha <shraddhajosh...@gmail.comwrote:
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

Jun 1 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.