Please tell me if i am right in my understanding of these terms:
near pointer : If the size of the program is very large the program may create a near pointer to a piece of frequently accessed memory so as to enhance performance.
But i am curious to know that so the near pointer is allocated/ created by the system rather than the user.
far pointer: If the program requires a lot of data, then a separate space is allocated for it outside the program data segment. So then a far pointer is used to access these memory locations so that the speed remains fast.
huge pointer: In an 8086 family of processors, the max. size of one data item can be 64k. But to override this default setup we can make use of huge pointers to have an object of size larger than 64k.
So this sums up what i tried to understand as i was reading a section on malloc. Also when the program executes an executable file is created. The memory allocation is that there is a code segment, data segment, space for global variables, free space for memory allocation and a stack where in the variables can reside as needed. So a separate stack is reserved for each program or is there a common stack area where partitions are done between the differetn progrrams?