I've recently started work on a project I mentioned in binutils-style module (or: XS interface to BFD), which involves running h2xs on a header files to autogenerate as much as I could (using the -x flag).

When I tried this on bfd.h from the binutils distribution h2xs churns away creating a typemap file, gradually sucking up all the available physical memory (256M), then all the swap (256M) before being killed.

Would this be regarded as normal or does it point to something going horrifically wrong with h2xs? If h2xs just needs a bit more memory I have a spare 6Gb partition which I could temporarily make into swap space.

Does anyone else have experience with using h2xs to create interfaces to GNU libraries? Can you give me any advice? Would I be better off using SWIG?

Kevin O'Rourke

No-one said it would be easy...


In reply to h2xs problems (aka: h2xs ate my memory) by kevin_i_orourke

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.