You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4171 Reporter: monniaux Assigned to:@xavierleroy Status: closed (set by @xavierleroy on 2009-03-31T11:08:53Z) Resolution: fixed Priority: normal Severity: feature Fixed in version: 3.11.0 Category: ~DO NOT USE (was: OCaml general)
Bug description
On Linux / x86_64, it is possible to have both 32-bit and 64-bit applications. 32-bit applications may sometimes be preferable (less memory is used, as experienced with Astrée).
This simply requires building OCaml for a i686 target instead of an amd64 target. I've done it, and here are the issues I've noticed:
there's no option to force arch to be i686-... instead of amd64-...; easy fix: the configure script should accept a -host command line option
there's no option to specify the assembler that ocamlopt uses:
./asmcomp/i386/proc.ml: Ccomp.command ("as -o " ^ F
is hardwired. If one wants to compile in 32-bit mode on an x86_64 machine, one has to replace as by as -32 in that line.
Of course, seasoned programmers can patch OCaml's source by hand, but still...
The text was updated successfully, but these errors were encountered:
configure does support the -host option. The ability to configure the assembler used by ocamlopt would be good, however. I keep this as a feature wish.
Original bug ID: 4171
Reporter: monniaux
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2009-03-31T11:08:53Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)
Bug description
On Linux / x86_64, it is possible to have both 32-bit and 64-bit applications. 32-bit applications may sometimes be preferable (less memory is used, as experienced with Astrée).
This simply requires building OCaml for a i686 target instead of an amd64 target. I've done it, and here are the issues I've noticed:
./asmcomp/i386/proc.ml: Ccomp.command ("as -o " ^ F
is hardwired. If one wants to compile in 32-bit mode on an x86_64 machine, one has to replace as by as -32 in that line.
Of course, seasoned programmers can patch OCaml's source by hand, but still...
The text was updated successfully, but these errors were encountered: