JuliaLang/julia

FCall macro and/or Fortran calling convention

Open

#38,872 opened on Dec 14, 2020

View on GitHub
 (10 comments) (4 reactions) (0 assignees)Julia (5,773 forks)batch import
featureffihelp wanted

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

Description

In conversation with @vtjnash I mentioned that it might make sense to add a calling convention to ccall that implements the GFortran ABI so that we can target different Fortran ABI compilers (see JuliaLang/julia#38836) instead of having it be explicit.

Alternatively a @fcall macro could make sense that converts the arguments to by-ref and handles, characters correctly.

x-ref: JuliaLang/LinearAlgebra.jl#650

Contributor guide