Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3461
| 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 | 2015-12-14 20:34 +0100 |
| Organization | solani.org |
| Message-ID | <n4n5kj$4c1$1@solani.org> (permalink) |
| References | <n4lp4s$2k9$1@solani.org> <n4lpj8$41k$1@solani.org> <11p86vVJT4Oe-pn2-d8Y0M1Bb9KwY@slat60-1> |
On 14.12.15 16.07, Steven Levine wrote: > On Mon, 14 Dec 2015 07:03:03 UTC, Lars Erdmann <lars.erdmann@arcor.de> > wrote: > > Hi Lars, > > I implemented high memory support so that we could link the Mozilla > apps. > > See malloc.h for: > > #if defined(__OS2__) && defined(__386__) > _WCRTLINK int _use_os2_high_mem( int fUseHighMem ); /* Returns prior > setting */ > _WCRTLINK void *_os2lmalloc( size_t amount ); > _WCRTLINK void *_os2hmalloc( size_t amount ); > #endif > > It's on my list to update the runtime library docs. That said, usage > is pretty straightforward. _use_os2_high_mem sets the global > allocation strategy used by malloc and friends. The default is low > memory only for backwards compatibility. _os2lmalloc and _os2hmalloc > override the global strategy for the current call. > > This all works similar to the gcc libc implementation. However, there > are no os2safe wrappers yet. > > Of course you will need an OpenWatcom built from the current depot > sources to use these functions. > > Have fun, > > Steven > Ok. Thanks for the info. Currently I am at OpenWatcom 1.9 which does not have that included yet. I'll pick it up if it becomes available or if I get the current OpenWatcom sources downloaded and built. Lars
Back to openwatcom.users.c_cpp | Previous | Next — Previous in thread | Find similar
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