Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread John Cowan
Ivan Raikov scripsit:

>   I use the pyffi library to call the UNO functions of OpenOffice from
> Scheme. It works ok since Python is well integrated with C. I am not
> familiar with the C interface of FreeBasic, but you can take a look at
> pyffi to see how it is structured.

FreeBasic uses the gcc toolchain, except that it generates x86 assembly
language suitable for gas(1) rather than C.  It can therefore generate
compatible shared libraries.  Name mangling is compatible with the
C++ ABI if you use Extern "C++" ... End Extern.

So there should be no barriers.

-- 
By Elbereth and Luthien the Fair, you shall co...@ccil.org
have neither the Ring nor me!  --Frodo  http://www.ccil.org/~cowan


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Ivan Raikov

Hello,

  I use the pyffi library to call the UNO functions of OpenOffice from
Scheme. It works ok since Python is well integrated with C. I am not
familiar with the C interface of FreeBasic, but you can take a look at
pyffi to see how it is structured.

   -Ivan

Karl Winterling  writes:

> Hi,
>
> I sort of wanted to know if anyone uses Chicken with systems languages
> other than C and C++, like, say, FreeBasic. It might be neat to have
> an egg for gfxlib.
>
> ---Karl


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Karl Winterling
Chicken -> C -> FreeBasic -> C -> Chicken

On Wed, Apr 7, 2010 at 5:27 PM, Stephen Eilert  wrote:
> On Wed, Apr 7, 2010 at 5:47 PM, Karl Winterling  wrote:
>> Hi,
>>
>> I sort of wanted to know if anyone uses Chicken with systems languages
>> other than C and C++, like, say, FreeBasic. It might be neat to have
>> an egg for gfxlib.
>>
>> ---Karl
>>
>>
>
> How would this interface be accomplished?
>
>
> --Stephen
>
> programmer, n:
>        A red eyed, mumbling mammal capable of conversing with
> inanimate monsters.
>


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Stephen Eilert
On Wed, Apr 7, 2010 at 5:47 PM, Karl Winterling  wrote:
> Hi,
>
> I sort of wanted to know if anyone uses Chicken with systems languages
> other than C and C++, like, say, FreeBasic. It might be neat to have
> an egg for gfxlib.
>
> ---Karl
>
>

How would this interface be accomplished?


--Stephen

programmer, n:
A red eyed, mumbling mammal capable of conversing with
inanimate monsters.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Karl Winterling
Hi,

I sort of wanted to know if anyone uses Chicken with systems languages
other than C and C++, like, say, FreeBasic. It might be neat to have
an egg for gfxlib.

---Karl


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users