Developer community
0 votes
23 views
asked by Geek (15.3k points) 17 41 61 | 23 views

1 Answer

0 votes
Sometimes you can get away with using a small memory model in most of a given program. There might be just a few things that don’t fit in your small data and code segments. When that happens, you can use explicit far pointers and function declarations to get at the rest of memory. A far function can be outside the 64KB segment most functions are shoehorned into for a small-code model. (Often, libraries are declared explicitly far, so they’ll work no matter what code model the program uses.) A far pointer can refer to information outside the 64KB data segment. Typically, such pointers are used with farmalloc() and such, to manage a heap separate from where all the rest of the data lives. If you use a small-data, large-code model, you should explicitly make your function pointers far.
answered by Expert (15k points) 15 23 31

Related questions

0 votes
1 answer
asked by sunny Expert (11.4k points) 14 23 29 | 28 views
0 votes
1 answer
0 votes
1 answer
asked by smith Geek (15.3k points) 17 41 61 | 36 views
+1 vote
2 answers
+1 vote
3 answers
asked by sunta Newbie (160 points) 2 2 4 | 3.2k views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users