Re: Using High Memory with GCC
Knut St. Osmundsen <bird <at> anduin.net>
2006-09-01 14:11:32 GMT
Steven Levine wrote:
> In <44F7D361.3000707 <at> sohnen-moe.com>, on 08/31/06
> at 11:29 PM, James Moe <jimoe <at> sohnen-moe.com> said:
>
>
>> I was told that High Memory is accessed by adding the OBJ_ANY flag to
>>memory allocation, like so:
>> DosAllocMem(&pMem,ulLen,...|OBJ_ANY)
>
>
>> How is this accomplished in GCC 3.3.5?
>
>
> I assume you mean how do I get the gcc runtime malloc() and new() to use
> OBJ_ANY under the covers.
>
> The place to start is the RTFRNs (i.e read the release notes which state)
>
> o Enabled high memory support for LIBC. Two new options to GCC:
> -Zhigh-mem and -Zhigh-low. If the program is to be enabled for
> high memory use, specify -Zhigh-mem when linking.
>
> I have to suspect that this is what you need, but I may need to pull a
> copy of the libc sources to be sure.
>
> BTW, I thought the plan was to port to OpenWatcom. Has this changed?
Nothing has change here, the above inforation is still valid. Feel free
to do something similar for watcom. Actually, I've got a patch which
make wlink use high memory for some purposes, but that's a very specific
(Continue reading)