From 7207350d8a38e525e8ef6d33ba86d2c603cafacc Mon Sep 17 00:00:00 2001
From: Sami Vaarala
Date: Sun, 16 Feb 2014 17:25:26 +0200
Subject: [PATCH] add DUK_OPT_FORCE_ALIGN to portability troubleshooting
---
website/guide/portability.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/website/guide/portability.html b/website/guide/portability.html
index 979602c4..624d29e9 100644
--- a/website/guide/portability.html
+++ b/website/guide/portability.html
@@ -230,5 +230,10 @@ headers are different (especially for pre C99/C++11).
self tests with DUK_OPT_SELF_TESTS
. Self tests
detect some compiler and platform issues which cannot be caught
compile time.
+If the target platform has specific alignment requirements and Duktape
+ doesn't autodetect the platform correctly, you may need to provide
+ either DUK_OPT_FORCE_ALIGN=4
or DUK_OPT_FORCE_ALIGN=8
.
+ The alignment number should match whatever alignment is needed for IEEE
+ doubles and 64-bit integer values.