caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* RE: [Caml-list] Effect of Windows LLP64 architecture on 64 bit MingW OCaml
@ 2015-10-24 10:49 Soegtrop, Michael
  0 siblings, 0 replies; 12+ messages in thread
From: Soegtrop, Michael @ 2015-10-24 10:49 UTC (permalink / raw)
  To: 'Adrien Nader'; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

Dear Adrien,

thanks for your detailed answer! I will do more experiments and then send a summary and request some doc extensions/updates as you suggested below.

Regrading the \r\n problem: the tr -d '\r' can be integrated into the runtest script as attached, so it would be only in one place. But for the time beeing I am using the supplied makefiles - as I said using configure was just a mistake. I did too much GTK building recently ;-) Still I got fairly far with the configure approach with just a few minor changes.

Regarding flexlink/flexdll: This somehow is in the configure scripts, but it doesn't seem to work. When building with configure, the system tries to link with gcc rather than flexlink and the flexlink defined symbols are missing then. I hacked it into the makefiles to get forward. I didn't find out what exactly went wrong between configure and make. The mkexe define seems to be used in different ways.
 
Best regards,

Michael
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

[-- Attachment #2: runtest --]
[-- Type: application/octet-stream, Size: 1143 bytes --]

#!/bin/sh

#########################################################################
#                                                                       #
#                                 OCaml                                 #
#                                                                       #
#            Xavier Leroy, projet Cristal, INRIA Rocquencourt           #
#                                                                       #
#   Copyright 1995 Institut National de Recherche en Informatique et    #
#   en Automatique.  All rights reserved.  This file is distributed     #
#   under the terms of the GNU Library General Public License, with     #
#   the special exception on linking described in file ../../LICENSE.   #
#                                                                       #
#########################################################################

if test "$verbose" = yes; then
echo "runtest: $cc -o tst $* $cclibs" >&2
$cc -o tst $* $cclibs || exit 100
else
$cc -o tst $* $cclibs 2> /dev/null || exit 100
fi

resultval=`./tst`
resultcode=$?

echo "$resultval" | tr -d '\r'
exit $resultcode

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] Effect of Windows LLP64 architecture on 64 bit MingW OCaml
@ 2015-10-23 13:57 Soegtrop, Michael
  2015-10-23 16:13 ` Xavier Leroy
  0 siblings, 1 reply; 12+ messages in thread
From: Soegtrop, Michael @ 2015-10-23 13:57 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

Dear Ocaml Users,

I wonder what differences exist between a 64 bit Linux Ocaml and a 64 bit MingW Ocaml. 64bit Windows and MingW64 are what is called LLP64, that is int and long are 32 bit and only long long, size_t and pointers are 64 bit as in 32 bit Windows. MingW has to follow this convention, otherwise it would be incompatible to the Windows headers. But 64 bit Linux tends to be LP64, that is int is 32 bit, but long is 64 bit. The Ocaml C code doesn't seem to use size abstraction types (like int32, int64), so I wonder what effect this has. Is a 64 bit MingW Ocaml somehow half 32 bit and half 64 bit as MingW C, or does it behave in the same way as a 64 bit Linux Ocaml? If MingW64 bit Ocaml is equivalent to Linux64 Ocaml, it would be interesting to know how this is done (there are a lot of longs e.g. in byterun).

Best regards,

Michael
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

[-- Attachment #2: Type: text/html, Size: 3086 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-10-26 19:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-24 10:49 [Caml-list] Effect of Windows LLP64 architecture on 64 bit MingW OCaml Soegtrop, Michael
  -- strict thread matches above, loose matches on Subject: below --
2015-10-23 13:57 Soegtrop, Michael
2015-10-23 16:13 ` Xavier Leroy
2015-10-24  9:29   ` Soegtrop, Michael
2015-10-24 10:05     ` Adrien Nader
2015-10-24 10:09     ` Gabriel Scherer
2015-10-24 10:54       ` Soegtrop, Michael
2015-10-24 10:59     ` David Allsopp
2015-10-26  8:25       ` Soegtrop, Michael
2015-10-24 11:16     ` Gerd Stolpmann
2015-10-26  8:42       ` Soegtrop, Michael
2015-10-26 19:04         ` Adrien Nader

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).