From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 69FD07ED1D for ; Tue, 13 Oct 2015 14:04:05 +0200 (CEST) IronPort-PHdr: 9a23:1VniyxYwvl6QWIHq8ZUVhfz/LSx+4OfEezUN459isYplN5qZpciybnLW6fgltlLVR4KTs6sC0LqK9fC9EjdZqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7z0q8CYOFwArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZn9KvAzRLlcSTAnKHwd5cvxtBCFQxHZtVUGVWBDtxNSABXe2y73XyD0uy38/r540TOZINawUr01Qi+n5qFtYB7uzjsaMng1/TeE2YRLkKtHrUf59FREyInObdTNOQ== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=markus.weissmann@in.tum.de; spf=None smtp.mailfrom=markus.weissmann@in.tum.de; spf=None smtp.helo=postmaster@smtp2.informatik.tu-muenchen.de Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of markus.weissmann@in.tum.de) identity=pra; client-ip=131.159.0.36; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.weissmann@in.tum.de"; x-sender="markus.weissmann@in.tum.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of markus.weissmann@in.tum.de) identity=mailfrom; client-ip=131.159.0.36; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.weissmann@in.tum.de"; x-sender="markus.weissmann@in.tum.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp2.informatik.tu-muenchen.de) identity=helo; client-ip=131.159.0.36; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.weissmann@in.tum.de"; x-sender="postmaster@smtp2.informatik.tu-muenchen.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0D1AADD8hxWmSQAn4Neg3puv3kdgnaCCoMAEAEBAQEBAQEBEAEBAQEBCAsLByEugh+CMQ8BBVUhAiYCXxuIJp03j3GUCIEij3yCUoFFBZYWjROCJ4Zvknk4gXUBCgEBAU+BXTwzhnEBAQE X-IPAS-Result: A0D1AADD8hxWmSQAn4Neg3puv3kdgnaCCoMAEAEBAQEBAQEBEAEBAQEBCAsLByEugh+CMQ8BBVUhAiYCXxuIJp03j3GUCIEij3yCUoFFBZYWjROCJ4Zvknk4gXUBCgEBAU+BXTwzhnEBAQE X-IronPort-AV: E=Sophos;i="5.17,677,1437429600"; d="scan'208";a="182543244" Received: from mail-out2.informatik.tu-muenchen.de (HELO smtp2.informatik.tu-muenchen.de) ([131.159.0.36]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 13 Oct 2015 14:04:05 +0200 Received: from webmail.in.tum.de (localhost [127.0.0.1]) by vmwebmail1.informatik.tu-muenchen.de (Postfix) with ESMTP id 274E5240347 for ; Tue, 13 Oct 2015 14:04:03 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 13 Oct 2015 14:04:03 +0200 From: =?UTF-8?Q?Markus_Wei=C3=9Fmann?= To: Message-ID: <4f63fa9ca9f594db57e700165c0dd674@in.tum.de> X-Sender: markus.weissmann@in.tum.de User-Agent: Roundcube Webmail/0.8.1 Subject: [Caml-list] detecting 32/64 bit from C Hello, is there some "official" way to detect -- from C -- if OCaml was compiled for 32 or 64 bit? I'd love to have something like a #define that either says 32 or 64 bit; I need to know at compile time if the OCaml system uses 31 or 63 bit sized integers (in the C code). I don't care what the underlying OS or hardware does, but just what OCaml is using. Btw.: Is [Sys.word_size = 32] for 32 bit OCaml compilers on 64 bit machines? Regards -Markus -- Markus Weißmann, M.Sc. Technische Universität München Institut für Informatik Boltzmannstr. 3 D-85748 Garching Germany http://wwwknoll.in.tum.de/