Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Far mean in c?

Tags:

c

pointers

const struct sockaddr FAR* name,
like image 659
ollydbg Avatar asked Oct 26 '10 13:10

ollydbg


People also ask

What is __ far?

The ALET of the __far pointer is set to zero. A __far pointer can be explicitly converted to a normal pointer through typecasting; the normal pointer keeps the offset of the __far pointer and the ALET is lost. A __far pointer cannot be implicitly converted to a normal pointer.

What is meant by far pointer?

In a segmented architecture computer, a far pointer is a pointer which includes a segment selector, making it possible to point to addresses outside of the default segment.

What is near Far huge in C?

It is a pointer which is similar to far pointer in terms of size because, both are 32-bit address. The huge pointer can be incremented without suffering with segment work round.

What is difference between far and near pointers?

Near pointer is used to store 16 bit addresses means within current segment on a 16 bit machine. The limitation is that we can only access 64kb of data at a time. A far pointer is typically 32 bit that can access memory outside current segment.

What does farfar mean in C?

far doesn't mean anything in C. Check out the C99 standard [PDF] and see if you can find mention of far pointers. Far pointers were an extension added to compilers targeting the 8086/80286 architectures to provide support for the segmented memory model. Show activity on this post. If does nothing unless you happen to be using a 16 bit x86 compiler.

What does far stand for?

For employees of GSA and agencies using GSA's payroll services. The Federal Acquisition Regulation (FAR) is the primary regulation for use by all executive agencies in their acquisition of supplies and services with appropriated funds.

What is a far pointer in C?

It basically means "this is a pointer that needs to be able to point at any address, not just things in the same segment as the code using it". See more or on the wikipedia page. Show activity on this post. far doesn't mean anything in C. Check out the C99 standard [PDF] and see if you can find mention of far pointers.

Who sets the far rate?

The Department of Defense (DoD), GSA, and the National Aeronautics and Space Administration (NASA) jointly issue the FAR. Error, The Per Diem API is not responding. Please try again later. No results could be found for the location you've entered. Rates for Alaska, Hawaii, U.S. Territories and Possessions are set by the Department of Defense .


2 Answers

It's an old extension from the era of segmented memory architectures. It basically means "this is a pointer that needs to be able to point at any address, not just things in the same segment as the code using it".

See more or on the wikipedia page.

like image 147
unwind Avatar answered Oct 12 '22 08:10

unwind


far doesn't mean anything in C. Check out the C99 standard [PDF] and see if you can find mention of far pointers. Far pointers were an extension added to compilers targeting the 8086/80286 architectures to provide support for the segmented memory model.

like image 25
JeremyP Avatar answered Oct 12 '22 06:10

JeremyP