Re: [cc65] _heapremove() RFE

From: MagerValp <MagerValp1cling.gu.se>
Date: 2005-02-15 13:38:32
>>>>> "UvB" == Ullrich von Bassewitz <uz@musoftware.de> writes:

UvB> Instead of

UvB>     RAM: start = $7FF, size = $c801, define = yes, file = %O;
UvB>     _heapremove ((void*)0xA000, 0x1000);

UvB> one could use

UvB>     RAM: start = $7FF, size = $9801, define = yes, file = %O;
UvB>     _heapadd ((void*)0xB000, 0x2000);

UvB> While the former can fail if heap blocks have already been
UvB> allocated, the latter cannot.

That's indeed a decent workaround for heap "holes", thanks.

UvB> Since adding automatic distribution to the linker is a bigger
UvB> task, Oliver suggested to generate a map file even in case of a
UvB> memory area overflow, to help with manual distribution. This is
UvB> already implemented in the snapshot. It's not the same as
UvB> automatic distribution, but at least a small improvement.

Ah, yes, that helps a bit.

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Feb 15 13:38:34 2005

This archive was generated by hypermail 2.1.8 : 2005-02-15 13:38:44 CET