variations'

Overview

This library provides some functions for determining the differences between VM implementations and conditionally evaluating code blocks based on these differences.

Specifically, it provides functions for determining the number of bits per cell and the endian nature of an implementation.

Functions

Function Stack Usage
size -n Return the number of bits per cell
endian -n Return 0 for little endian or 1 for big endian
bits{ n"- Execute code up to } if the bits per cell matches n
bigEndian "- Execute code up to } if endian is big
littleEndian "- Execute code up to } if endian is little
} - Does nothing