in reply to Can I use C or ASM from core?

Maybe you need:
use Inline::C;
in any case look at this tutorial

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.