Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > openwatcom.users.c_cpp > #3458

Re: Using function "_bheapseg" under OS/2 (use of high memory)

Path csiph.com!au2pb.net!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Lars Erdmann <lars.erdmann@arcor.de>
Newsgroups openwatcom.users.c_cpp
Subject Re: Using function "_bheapseg" under OS/2 (use of high memory)
Date Mon, 14 Dec 2015 08:03:03 +0100
Organization solani.org
Lines 27
Message-ID <n4lpj8$41k$1@solani.org> (permalink)
References <n4lp4s$2k9$1@solani.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace solani.org 1450076584 4148 eJwNwokRwDAIA7CVIAaTjlO+/UdoT3JQWWF0mu9PJqvQIW4XRrPIjeLRqURkd7w414s6D2Q/GdQRAA== (14 Dec 2015 07:03:04 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 14 Dec 2015 07:03:04 +0000 (UTC)
User-Agent Mozilla/5.0 (OS/2; Warp 4.5; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
X-User-ID eJwNwokRACEIBLCWlGcXyuFA+y/Bm8QVG02Dw/z+vDAlZ801BfCFB0M6KoNsz6XZZwxMSe55Em8QbA==
In-Reply-To <n4lp4s$2k9$1@solani.org>
Cancel-Lock sha1:yALhTjUZ/xMG1GZxX0LieZ1YSZY=
X-NNTP-Posting-Host eJwNwocRwEAIA7CVaDbzUJ79R0h0glM5GQQDh5OzP3VPQt9OTXqK7Kl3oV5wrPuluViC+gEixBEL
Xref csiph.com openwatcom.users.c_cpp:3458

Show key headers only | View raw


Forgot to ask:

how do you convert (under OS/2 and using high memory if possible) a 
based address (which _bmalloc returns) into a full 32-bit linear address ?
I would appreciate if someone could provide a small code snippet ...
If all of this does not work under 32-bit OS/2, does anyone know any 
other functions in the Watcom RTL that would allow me to manage a heap 
in high memory ?


Lars


On 14.12.15 07.55, Lars Erdmann wrote:
> I am using the OS/2 version of the compiler.
> I am looking for a way to manage a heap in high memory (above the 512 MB
> address).
>
> For OS/2, will _bheapseg allocate a heap in the conventional memory
> (below 512 MB) or will it attempt to allocate in high memory if possible ?
>
> Is there any way to influence this with an OS/2 specific compiler switch
> or some define ?
>
> Thanks,
> Lars

Back to openwatcom.users.c_cpp | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Using function "_bheapseg" under OS/2 (use of high memory) Lars Erdmann <lars.erdmann@arcor.de> - 2015-12-14 07:55 +0100
  Re: Using function "_bheapseg" under OS/2 (use of high memory) Lars Erdmann <lars.erdmann@arcor.de> - 2015-12-14 08:03 +0100
    Re: Using function "_bheapseg" under OS/2 (use of high memory) "Steven Levine" <steve53@nomail.earthlink.net> - 2015-12-14 15:07 +0000
      Re: Using function "_bheapseg" under OS/2 (use of high memory) Frank Beythien <nospam_2015@efbe.prima.de> - 2015-12-14 09:51 +0100
        Re: Using function "_bheapseg" under OS/2 (use of high memory) Lars Erdmann <lars.erdmann@arcor.de> - 2015-12-14 20:36 +0100
      Re: Using function "_bheapseg" under OS/2 (use of high memory) Lars Erdmann <lars.erdmann@arcor.de> - 2015-12-14 20:34 +0100

csiph-web