New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem compiling large sources using native-code compiler #2383
Comments
Comment author: administrator
It is basically a limitation of the HPPA processor: the "branch" opcode Other processors can encode larger displacements. For instance, the SPARC There is not much that ocamlopt can do to work around this limitation, since it You could try to work around this limitation by splitting your large Best regards,
|
Comment author: administrator It's a limitation of the HPPA processor |
Comment author: administrator
Many thanks for your reply. I now understand what the problem is, and try Thanks, Vince |
Original bug ID: 47
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Vincent Zammit
Version: 2.01
OS: HP/UX
Submission from: aspirateur.inria.fr (128.93.8.116)
Submitted by: doligez
Date: Tue, 29 Feb 2000 17:40:28 GMT
From: vince@sharp.co.uk (Vincent Zammit)
Message-Id: 200002291740.RAA13188@locke.sharp.co.uk
To: caml-light@pauillac.inria.fr
Subject: Problem compiling large sources using native-code compiler
Dear Caml maintainers,
We are using ocaml in some large program development, and the
native-code compiler fails (during linking) on compiling a
particular file giving several of the following error messages:
collect2: ld returned 1 exit status
/usr/ccs/bin/ld: Target of unconditional branch is out of range
Reference from: .o(0x3fb5c)
/usr/ccs/bin/ld: Target of unconditional branch is out of range
Reference from: .o(0x3fb8c)
/usr/ccs/bin/ld: Target of unconditional branch is out of range
Reference from: .o(0x3fbc0)
.
.
.
Where .o is quite a large object file --- more than
800K in size.
This occurs only on HP/UX machines; the same files compile on
Sparc architectures, but in these cases the generated object
file is slightly less than 800K.
I wonder whether this is a limitation or a bug, and whether it
has already been fixed in recent versions. We are currently using
ocaml version 2.01; I had a look at the What's New page but I could
find nothing that suggests that this problem is fixed.
Many thanks,
Vince Zammit
Sharp Laboratories of Europe
The text was updated successfully, but these errors were encountered: