Memory allocation: Difference between revisions
Content added Content deleted
(Added Axe) |
|||
Line 90: | Line 90: | ||
<lang AutoHotkey>VarSetCapacity(Var, 10240000) ; allocate 10 megabytes |
<lang AutoHotkey>VarSetCapacity(Var, 10240000) ; allocate 10 megabytes |
||
VarSetCapacity(Var, 0) ; free it</lang> |
VarSetCapacity(Var, 0) ; free it</lang> |
||
=={{header|Axe}}== |
|||
Axe does not provide runtime support for a heap, so memory must be allocated statically. |
|||
<lang axe>Buff(100)→Str1 |
|||
.Str1 points to a 100-byte memory region allocated at compile time</lang> |
|||
The optional second parameter to Buff() allows you to specify the byte to be filled with (default is zero). |
|||
=={{header|BBC BASIC}}== |
=={{header|BBC BASIC}}== |