[erlang-patches] fixed hipe:load/1

Mikael Pettersson mikpe@REDACTED
Mon Jul 12 15:16:36 CEST 2010


Paul Guyot writes:
 > Mikael,
 > 
 > Thank you for your response.
 > 
 > Le 12 juil. 2010 à 11:41, Mikael Pettersson a écrit :
 > 
 > > Who uses hipe:load/1 anyway?  I'm just wondering if it's a relic from
 > > ancient history, or if it actually offers functionality not available
 > > elsewhere.
 > 
 > I guess no one uses hipe:load/1 since it is broken. It is documented in hipe:help_hiper(), though. We wanted to use it as a workaround to the other bug I submitted a patch for (native code of early modules is not loaded), and we ended up duplicating the code in our internal tool that invokes dialyzer. Considering that there is a compilation option to compile a code natively but to not load this code ([native, {hipe, [no_load]}]), I guess hipe:load/1 makes sense even if the other bug is fixed.

But [native,{hipe,[no_load]}] stores the native code in the .beam file
if I'm not mistaken.  So you'd just need to load or upgrade that module
to bring the native code into the VM.  I still don't see why hipe:load/1
is needed.

 > > The test suite thing is orthogonal.  I don't mind it, but it won't be
 > > used by HiPE developers since our test suite is completely separate from
 > > Erlang/OTP's.
 > 
 > Is the test suite used by HiPE developers open source ? Where is it located ?

It's intended to be open source, but for historical reasons it's still
located on a departmental CVS server with limited public access.

I intend to convert it to git "any day now".


More information about the erlang-patches mailing list