Jump to content

Memory allocation: Difference between revisions

Added Axe
(Added Axe)
Line 90:
<lang AutoHotkey>VarSetCapacity(Var, 10240000) ; allocate 10 megabytes
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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.