Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What are the function of huge and far pointers in C language?

Status
Not open for further replies.

rameshbabu

Member level 2
Joined
Aug 1, 2007
Messages
46
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,663
What are meant by huge and far pointers in c language and it's applications.
 

C

This dates back a bit to the days of dos and the limitations of 20 bit address bus when a program could be written using a memory model.
Small: The whole program and data fits in 64K.
Large: The code fits in 64K, the data sits in another 64K segment.
Huge: Fu...ing big.

But in simple terms, depending on 'size_t' a near pointer is 16 bits wide and a far or huge pointer is 32 bits wide.
It's faster to manipulate near pointers.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top