Yeah, I've gotten pretty excited about this in the last few days and I
believe that a CPAN release is coming in the near future. It works on
Strawberry Perl, so you should give it a spin and see if it's useful. Also,
I think I'll change the name from the top-level TCC to this second-level
and more
I would be please if you focused on getting it in shape to put on cpan. That
would give it more exposure for useful feedback and evaluation (can everyone
say "beta" ;-) ). It sounds like a definite alternative for me to dll 's , but
will have to run with strawberry perl on windows. I also do a
Livespi -
A while ago I started work on a Perl wrapper for libtcc so that Perl can
have just-in-time compilation of C code that compiles faster than
Inline::C. Your question caused me to dust off the work, which was in
something of a limbo state, and finish the mechanism for exposing C
functions t
Re !
I've checked with tcc, and it appears that the neither syntax __cdecl nor
__stdcall are supported. But tcc features GNU C extension, so the correct
code is :
For cdecl
> __attribute__(cdecl) int my_foo(int myArg);
For stdcall
> __attribute__(stdcall) int my_foo(int myArg);
However, you can
In C, you can specify a calling convention, or the compiler uses its
default. I think the default in most C compilers is "cdecl". I'd say,
when exporting C code to other languages, you should explicitly specify
the calling convention for the exported functions.
When calling from another lang
Hi !
2013/8/9 livespi
> Greetings all,
> Does anyone here have cross-language knowledge/experience with Perl on
> Win32?
> I can build dll's with tcc using the "-shared" flag, and they work fine
> when I call the dll functions FROM a tcc program.
>
> Perl has a package Win32::API which allows y
Greetings all,
Does anyone here have cross-language knowledge/experience with Perl on
Win32?
I can build dll's with tcc using the "-shared" flag, and they work fine
when I call the dll functions FROM a tcc program.
Perl has a package Win32::API which allows you to call dll functions from
within