FC_THROW_EXCEPTION(wasm_execution_error,"Smart contract initial memory size must be less than or equal to 1MiB");
FC_THROW_EXCEPTION(wasm_execution_error,"Smart contract initial memory size must be less than or equal to ${k}KiB",("k",wasm_constraints::maximum_linear_memory/1024));
FC_THROW_EXCEPTION(wasm_execution_error,"Smart contract data segments must lie in first 64KiB");
FC_THROW_EXCEPTION(wasm_execution_error,"Smart contract data segments must lie in first ${k}KiB",("k",wasm_constraints::maximum_linear_memory_init/1024));
// In 64-bit, allocate enough address-space to safely access 32-bit table indices without bounds checking, or 16MB (4M elements) if the host is 32-bit.