Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

XSUBs and Compilers

by TGI (Parson)
on Mar 17, 2004 at 19:36 UTC ( [id://337480]=perlquestion: print w/replies, xml ) Need Help??

TGI has asked for the wisdom of the Perl Monks concerning the following question:

It looks like I will need to enter the strange new (to me) world of XS development for a project I am working on, I'm new to this, so I need advice.

I am working on an embedded project using a Cygnal 8051F330 and the IDE SiLabs (formerly Cygnal) provides with their dev kit. They also provide a few DLLs that allow programmatic manipultion of a connected system. My plan is to use Test::More and friends to automate some tests on the system. To do this I need to use the DLL to control the test system.

I am using Windows XP and Active State Perl 5.6.1. Active State uses MSVC to compile Perl. I don't have MSVC, is this going to prevent me from creating functional XS code? From the docs it seems like the tools used to build perl need to be the same as those used to build any XS code. Is this true or am I missing something obvious? Is there another approach to talking to a DLL that I am overlooking?


TGI says moo

Replies are listed 'Best First'.
Re: XSUBs and Compilers
by Mr. Muskrat (Canon) on Mar 18, 2004 at 00:24 UTC
Re: XSUBs and Compilers
by dragonchild (Archbishop) on Mar 18, 2004 at 01:49 UTC
    If you're looking for a port of gcc to Win32, use Cygwin. It's robust and works really well.

    Additionally, you might be able to use Inline::C instead of XS. I'd go down that road, first.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Re: XSUBs and Compilers
by esskar (Deacon) on Mar 17, 2004 at 20:36 UTC
    MSVC compilers are available for free. Look it up at the MS download page.
    But anyway, you can use different compilers as you want... like the one from Intel

      I'm not sure where you found free MS compilers. I can't find anything at microsoft.com or msdn.com. Perhaps you can provide a link.

      But if I understand you correctly, I should be able to use the gcc and mingw to build my wrapper code.


      TGI says moo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://337480]
Approved by DaWolf
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-29 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found