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 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: References: 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: Cancel-Lock: sha1:yALhTjUZ/xMG1GZxX0LieZ1YSZY= X-NNTP-Posting-Host: eJwNwocRwEAIA7CVaDbzUJ79R0h0glM5GQQDh5OzP3VPQt9OTXqK7Kl3oV5wrPuluViC+gEixBEL Xref: csiph.com openwatcom.users.c_cpp:3458 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