summaryrefslogtreecommitdiffstats
path: root/documentation/Data Models and Sizes
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/Data Models and Sizes')
-rw-r--r--documentation/Data Models and Sizes18
1 files changed, 18 insertions, 0 deletions
diff --git a/documentation/Data Models and Sizes b/documentation/Data Models and Sizes
new file mode 100644
index 0000000..305cb40
--- /dev/null
+++ b/documentation/Data Models and Sizes
@@ -0,0 +1,18 @@
+(https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.cbcpx01/datatypesize64.htm)
+
+ ILP32 (32-bit environment) LP64 (64-bit environment)
+ size in bytes size in bytes
+ =========================== ================================
+char 1 1
+short 2 2
+int 4 4
+long 4 8
+long long 8 8
+float 4 4
+double 8 8
+long double 16 16
+pointer 4 8
+wchar_t 2 4 Other UNIX platforms usually have wchar_t 4 bytes for both
+ 32-bit and 64-bit mode
+size_t 4 8 unsigned type
+ptrdiff_t 4 8 signed type