Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Thanks.

  • it looks like you didn't use any of CPAN LLVM modules.

    Correct. Those modules are for use from an existing Perl installation to compile C code to speed up small functions. Much in the vain of using XS or Inline::C.

    The exercise here is to (first) build Perl itself using LLVM.

  • How did you get/compile 'clang.exe'?

    You pull the source code and then build it :) see http://clang.llvm.org/get_started.html.

    It can be built with gcc (mingw on win), or MSVC.

    Once built (on *nix) clang 'claims' (or perhaps just 'aims') to be a "drop-in replacement for gcc".

    (I'm not in a position to verify that, but superficially from the docs and examples I can find, it looks fairly true.

  • Or maybe once you have 'clang.exe' you can get a faster version by compiling 'clang.exe' with 'clang'. Completely guessing :-)

    I've no idea if you can bootstrap clang using clang.

    Update: it can and does on *nix. (Apparently their build bots re-build themselves regularly.)

For now, my target is to work out how to build (a) working perl -- that is compatible with modules built for that perl using the normal mechanisms -- using clang.

A simple, standalone sandbox in which to play.

Then I can compare that to the standard build and see what if any improvements are available using LLVM as just another C compiler.

Then I can explore what differences/improvements are bought about by which of LLVMs many optimisation passes. Ie. which give the best bang for the buck.

Then move on to exploring the possibility of bolting LLVM JIT into the mix at runtime.

But baby steps. The clang docs are sparse and despite that they are targeting windows compatibility -- and have already added lots of support -- there are few windows people involved from who to curry expertise.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong


In reply to Re^2: perllVm: A start. by BrowserUk
in thread perllVm: A start. by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found