I presume that in Standard ML :
- int is 32 bit on 32bit linux
On 64 bit linux is int also 32 bit? Furthermore is there a place (url) where the size of different datatypes is outlined, for Standard ML? Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
Int.precisionto determine the size of the built inInttype.The sizes of the
Inttype isn’t language defined, but implementation defined, so the answer you’re looking for depends on your choice of compiler/interpreter.Moscow ML provides 31-bit integers on 32 bit machines and 63-bit integers on 64-bit machines, for instance.(source)
Note that many implementations provide several int types, some of which may be arbitrary precision. For each of these, a corresponding
precisionfunction will exist to tell you the precision provided by that given type.