Skip to content

Bug with constant sharing #36

@vouillon

Description

@vouillon

Constants are not compiled correctly.

This code:

    ["%int_mul", "caml_mul";
     "%int_div", "caml_div";
     "%int_mod", "caml_mod";
     "caml_int32_neg", "%int_neg";
     "caml_int32_add", "%int_add";
     "caml_int32_sub", "%int_sub";
     ....

is compiled into:

     _ayg_=
      [0,
       [0,_b_("caml_mul"),_b_("caml_mul")],
       [0,
        [0,_b_("caml_div"),_b_("caml_div")],
        [0,
         [0,_b_("caml_mod"),_b_("caml_mod")],
         [0,
          [0,_b_(_if_),_b_(_if_)],
          [0,
           [0,_b_(_g__),_b_(_g__)],
           [0,
            [0,_b_(_il_),_b_(_il_)],
            [0,
            ....

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions