* Implementation of ISO_Fortran_binding.c and .h files
@ 2018-04-14 20:14 Jerry DeLisle
2018-04-15 0:36 ` Steve Kargl
2018-04-15 7:48 ` Thomas Koenig
0 siblings, 2 replies; 3+ messages in thread
From: Jerry DeLisle @ 2018-04-14 20:14 UTC (permalink / raw)
To: fortran
Hi all,
Daniel Garza is implementing the subject files.
I have a question. Should the functions in the .c file become part of
libgfortran or in a separate library file of their own?
I must admit I have not read through the standard, but I assume that
anyone using the functions in a C program need to link to something.
Regards,
Jerry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Implementation of ISO_Fortran_binding.c and .h files
2018-04-14 20:14 Implementation of ISO_Fortran_binding.c and .h files Jerry DeLisle
@ 2018-04-15 0:36 ` Steve Kargl
2018-04-15 7:48 ` Thomas Koenig
1 sibling, 0 replies; 3+ messages in thread
From: Steve Kargl @ 2018-04-15 0:36 UTC (permalink / raw)
To: Jerry DeLisle; +Cc: fortran
On Sat, Apr 14, 2018 at 01:14:38PM -0700, Jerry DeLisle wrote:
>
> I have a question. Should the functions in the .c file become part of
> libgfortran or in a separate library file of their own?
Good question. The functions seems to be prefixed by CFI_,
so libgfortran would now have additional namespace pollution.
An effort had been made to prefix functions with _gfortran_
or _gfortrani_. There appears to be two exceptions. The
backtrace function start with backtrace_. libgfortran will
also include fallback C99 functions if a target does not
provide them (e.g., round(), roundf(), and roundl()).
These CFI_ functions however would be inaccessible from a
Fortran program (without a bind c name clause). So, the
namespace pollution isn't too bad. I suspect that users
who want/need the CFI_ functions will be doing mixed
fortran/C language programming. Might as well put them in
libgfortran.a
Just my $0.02.
--
Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Implementation of ISO_Fortran_binding.c and .h files
2018-04-14 20:14 Implementation of ISO_Fortran_binding.c and .h files Jerry DeLisle
2018-04-15 0:36 ` Steve Kargl
@ 2018-04-15 7:48 ` Thomas Koenig
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Koenig @ 2018-04-15 7:48 UTC (permalink / raw)
To: Jerry DeLisle, fortran
Hi Jerry,
> Daniel Garza is implementing the subject files.
>
> I have a question. Should the functions in the .c file become part of
> libgfortran or in a separate library file of their own?
I think they should be part of libgfortran. It's part of the language,
it needs to use information from ligbgfortran.h, and adding a new
library just adds complexity we do not need.
Regards
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-15 7:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-14 20:14 Implementation of ISO_Fortran_binding.c and .h files Jerry DeLisle
2018-04-15 0:36 ` Steve Kargl
2018-04-15 7:48 ` Thomas Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).