Actually, after consulting with people who know more about this than I do, it turns out it should be theoretically possible. You would have to link your static library into the MoarVM executable (which could be hairy). But after that, assuming your function is named "frobnicate" and it takes a single 64bit integer and returns a string, it would be a matter of:
use NativeCall; sub frobnicate(int64 --> Str) is native {*}

In reply to Re^9: It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer? by liz
in thread It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer? by martin

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