assembly labels loop on huge generated .ml files #4869
Original bug ID: 4869
native code generation uses a barrier at 100000 for the generation of asm labels, at least on i386 and amd64 (haven't tried others). This only happens when using ocaml on very huge generated code, but there doesn't seem to be a good reason to enforce this limitation (except, perhaps, readability of the asm); besides, ocaml doesn't complain but generates invalid assembly code.
here is a possible patch that replaces the barrier at 100000 to max_int/2 : it's not pretty but solves the issue alright
The text was updated successfully, but these errors were encountered: