gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] GM2 help required


From: Gaius Mulley
Subject: Re: [Gm2] GM2 help required
Date: Mon, 23 Feb 2009 10:45:52 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

"Inamdar, Vikram" <address@hidden> writes:

> Can anybody suggest the way of adding/patching a ?C? code to a legacy 
> ?Modula2?
> code?
>
>  
>
> Regards,
>
> Vikram Inamdar

Hi Vikram,

if you use gm2 then you can utilise the DEFINITION MODULE FOR "C"
extension which allows Modula-2 to access C functions and variables.
There is an example in the documentation here:

1.14 Interfacing GNU Modula-2 to C 

http://www.nongnu.org/gm2/gm2.html#SEC14

elsewhere in the documentation it gives the equivalence of fundamental
data types between C and gm2.  This works well - I've used pthreads,
libm, libc and gm2 to a build production system.

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]