bootstrap-cells ( m -- n ) (original) (raw)

bootstrap-cells ( m -- n )
Factor handbook » The implementation » VM memory layouts » Bootstrap support

Prev: bootstrap-cell ( -- n )
Next: bootstrap-cell-bits ( -- n )

Vocabulary
layouts

Inputs

m an integer

Outputs

n an integer

Word description
Computes the number of bytes used by m cells in the target image (if bootstrapping) or the current CPU architecture (otherwise).

Definition

USING: math ;

IN: layouts

: bootstrap-cells ( m -- n ) bootstrap-cell * ; inline