summaryrefslogtreecommitdiffstats
path: root/development/4th/readme_64-bit.txt
diff options
context:
space:
mode:
author Zbigniew Baniewski2014-04-13 17:09:28 +0200
committer Willy Sudiarto Raharjo2014-04-13 17:11:12 +0200
commit3b0bddf7a515543abc89ae438199130ee0abd715 (patch)
tree09d4860671e2879ddab5e7949295bfc09a692a8f /development/4th/readme_64-bit.txt
parente684ccaa73b23311da0144ce7cabbac83fdcaa91 (diff)
downloadslackbuilds-3b0bddf7a515543abc89ae438199130ee0abd715.tar.gz
development/4th: Updated for version 3.62.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/4th/readme_64-bit.txt')
-rw-r--r--development/4th/readme_64-bit.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/development/4th/readme_64-bit.txt b/development/4th/readme_64-bit.txt
new file mode 100644
index 0000000000..58e2a0f67c
--- /dev/null
+++ b/development/4th/readme_64-bit.txt
@@ -0,0 +1,51 @@
+If you're using 64-bit processor - which nowadays is quite common - you can
+compile 4th as 64-bit compiler. To do this, just delete patch #02 before
+compilation. But read the following excerpt from original 4th docs first:
+
+
+25.7 <sec:64-bit-platforms>64-bit platforms
+
+Although 4tH will work perfectly well on a 64-bit platform there
+are some disadvantages:
+
+• HX files generated by this compiler are not portable to 32-bit
+ platforms
+
+• Some 4tH library files may not work properly without some
+ modifications.
+
+A quick fix is to change the size of a cell to a four byte
+datatype. The following procedure will usually work. Open 4th.h
+and change these lines:
+
+#define CELL_MIN LONG_MIN
+
+#define CELL_MAX LONG_MAX
+
+
+
+typedef long cell;
+
+To this:
+
+#define CELL_MIN INT_MIN
+
+#define CELL_MAX INT_MAX
+
+
+
+typedef int cell;
+
+Save 4th.h and compile as described in the previous sections. If
+you want a full 64-bit 4tH compiler, be aware that:
+
+• You cannot compile 4tH as a shared library
+
+• You have to regenerate the include files manually, unless
+ you're working with Linux.
+
+Linux automatically recreates the include files each time you
+perform a compile. If you're working with a GNU toolset, you may
+try the Linux Makefile. If that doesn't work or isn't an option
+in your particular situation you'll have to perform the procedure
+listed in section [sec:Regenerating-the-include].