Table of Contents

Advertisement

alloc

alloc — allocate a block of memory
Exports the
routine out to the shell so you can allocate a block of memory
malloc
from heap. You can then use the block simultaneously with several test routines
(there can be several readers but only one writer).
Syntax
alloc
size [ modulus ] [ remainder ] [-flood] [-z heap_address ]
Arguments
size
Specifies the size (hexadecimal) in bytes of the requested block.
modulus
Specifies the modulus (hexadecimal) for the beginning address of the requested
block.
remainder
Specifies the remainder (hexadecimal) used in conjunction with the modulus for
computing the beginning address of the requested block.
Options
-flood
Flood memory with 0s. By default, the alloc command does not flood memory.
-z heap_address
Allocate memory from the memory zone starting at address heap_address. You
can get this address from the output of the dynamic command.
Example
>>> alloc 200
00FFFE00
>>> free fffe00
>>> set base 'alloc 400'
>>> show base
base
00FFFC00
>>> memtest $base
>>> free $base
>>> clear base
13–4 Console Commands

Advertisement

Table of Contents
loading

This manual is also suitable for:

Digital alpha vme 4/288

Table of Contents