optimizations involving IBM PC memory models

spuler@coral.cs.jcu.edu.au (David Spuler)
Thu, 2 Jul 1992 14:03:34 GMT

          From comp.compilers

Related articles
optimizations involving IBM PC memory models spuler@coral.cs.jcu.edu.au (1992-07-02)
| List of all articles for this month |
Newsgroups: comp.compilers
From: spuler@coral.cs.jcu.edu.au (David Spuler)
Organization: Compilers Central
Date: Thu, 2 Jul 1992 14:03:34 GMT
Keywords: MSDOS, optimize

Can anyone tell me of any papers, books, or personal experiences of
optimization techniques relevant to the choice of memory models for IBM
PCs?


I have been toying with the idea that there are some optimizations
possible, such as using static analysis to detect when a pointer need only
be a near pointer, or when a function call need only be a near call, etc.
It seems to me that common compilers accept the user's choice of model and
don't attempt to determine whether it is an inefficient choice.


Thanks in advance,
David Spuler
[Some compilers automatically make calls to static functions near, even in
medium or large model code, but I've never seen one try to guess what pointer
model to use. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.