This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A little help needed ..


On Wednesday 15 October 2003 12:56 pm, Lars Segerlund wrote:
>  I am looking at intrinsic modules for g95, and I have gotten so far as
> to look through the module interface, ( the files and part of the
> internal handling ).
>
>  What I have concluded is that it just might be possible to do a fairly
> straight implementation of intrinsic modules, ( since only a couple is
> defined), by using regular .mod files and perhaps a small part in the
> lib.
>
>  What I would like to know is if anybody have a good tip on where to
> start looking at the internal type handling.
>
>  It looks like it will be necessary to generate C function calls from
> intrinsic modules in most cases, ( both ieee and the C bindings seems to
> need it ).  So am I right about my assumptions that these modules would
> be very hard to, ( or not very optimal), generate as regular modules ?

I haven't looked too closely, but I suspect it's probably easiest to handle 
most of the functions in the same way as the existing intrinsic functions. 
USEing the intrinsic module would create/add/enable these.
It may be possible to use the existing module handling to achieve this. 
However it might work out simpler to do something completely different when 
we see an intrinsic module, rather than trying to make the existing code do 
what we want.

Intrinsic variables are probably more straightforward.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]