Anonymous user
Host introspection: Difference between revisions
→{{header|Modula-3}}
(→{{header|Pascal}}: add example) |
|||
Line 338:
<lang java>System.out.println("word size: "+System.getProperty("sun.arch.data.model"));
System.out.println("endianness: "+System.getProperty("sun.cpu.endian"));</lang>
=={{header|Mathematica}}==
<lang Mathematica>If[$ByteOrdering > 0, Print["Big endian"], Print["Little endian" ]]
$SystemWordLength "bits"</lang>
x86 Output:
<pre>
Little endian
32 bits
</pre>
=={{header|Modula-3}}==
Line 358 ⟶ 369:
Endianness: Little
</pre>
'''Bold text'''
=={{header|NetRexx}}==
|