Thanks,
Avi.
The Watcom compiler uses a flat model so the entire amount of
memory used will be 2^^32, or about 4Gig. There are some areas of this
memory map that are reserved, and of course you will start with some
code and data. The rest could be filled up with malloc().
If you have more memory, there are ways to allocate more
memory in extra segents. These could be accessed by
far pointers.
Mitchell Schoenbrun --------- masc...@pobox.com
Thanks,
Avi.
Avi Kavas schrieb:
Right ?
Avi.
"Andre Koppel" <ako...@akso.de> wrote in message
news:39632012...@akso.de...
Avi Kavas schrieb:
In the past QNX had specific areas reserved so that libraries
could be mapped in at specific addresses. I presume that this
has not gone away, though I'm not sure about it.
--
Mitchell Schoenbrun --------- masc...@pobox.com
Unfortunately I don't know the specifics. I think that amount
that fits this category is trivial next to the approximately 4Gig
maximum. I mentioned it only for completeness so that if you
find that you are down a meg or two, there will be no cause
for alarm. Do you actually anticipate a > 4Gig machine?
Mitchell Schoenbrun <masc...@tsoft.com> wrote in message
news:sm7jkmk...@corp.supernews.com...
> Andre Koppel <ako...@akso.de> wrote:
> > Using the flat-memory model there is no specific area of user-memory
> > reserved.
>
> In the past QNX had specific areas reserved so that libraries
> could be mapped in at specific addresses. I presume that this
> has not gone away, though I'm not sure about it.
No, this has not gone away. The shared libraries are non-relocatable,
so the application has to ensure that it does not map in memory that
would overlay a shared library. This is actually enforced by the
Watcom linker. When the application is built, any shared libraries
linked against it are queried for their offsets, and then the linker
relocates the application code segment to be safely above any of the
shared libraries in memory.
-----
Andrew Thomas, President, Cogent Real-Time Systems Inc.
2430 Meadowpine Boulevard, Suite 105, Mississauga, Ontario, Canada L5N 6S2
Email: and...@cogent.ca WWW: http://www.cogent.ca