Hi Noraryr,
Without the GC, memory allocations can still be done in the normal way
using NEW but the memory is allocated using malloc(). To free this
memory, use RT0.FreeBlock. Alternatively, you can use the following RT0
functions:
RT0.NewObject allocates records and arrays and initialises the type
descriptors.
RT0.NewBlock allocates memory without type descriptors.
Cheers,
Stewart
texts writer wrote:
> Hello.
> I would like to know more accurate which SYSTEM functions must be used
> when ooc compiler with --without-gc flag. I mean, what is right way to
> allocate and deallocate memory without gc
>
> Thanks
>
> Norayr
> ---
> norayr.blogspot.com
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> ooc-compiler mailing list
> ooc...@li...
> https://lists.sourceforge.net/lists/listinfo/ooc-compiler
>
|