From 38da1322c1047e055526c1f38d9ce6f3562c6f33 Mon Sep 17 00:00:00 2001 From: Jesse McDonald Date: Sat, 7 Nov 2020 14:26:36 -0600 Subject: [PATCH] fix excess alignment for 64-bit integer types on x86 --- startup.4th | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/startup.4th b/startup.4th index 3e791c6..75219a5 100644 --- a/startup.4th +++ b/startup.4th @@ -1365,7 +1365,6 @@ DEFER REFILL ' UTILITY (DEFINITIONS) \ Extra field type descriptors for FFI structs -\ Each type is naturally aligned (contrast int64% vs 2CELL%) \ The signed/unsigned variants are just for documentation 1 DUP 2CONSTANT int8% LATEST ▪ DUP ALIAS uint8% @@ -1382,7 +1381,8 @@ DEFER REFILL ▪ DUP ALIAS unsigned-int% ▪ DUP ALIAS signed-long% ▪ ALIAS unsigned-long% -8 DUP 2CONSTANT int64% LATEST +\ Maximum alignment is four bytes, even for 64-bit integer types +4 8 2CONSTANT int64% LATEST ▪ DUP ALIAS uint64% ▪ DUP ALIAS signed-long-long% ▪ ALIAS unsigned-long-long%