HackerTrans
トップ新着トレンドコメント過去質問紹介求人

ivanpribec

no profile record

コメント

ivanpribec
·4 か月前·議論
Reminds me of spreadsheet-fortran (https://github.com/lwsinclair/spreadsheet-fortran), a project creating a VisiCalc lookalike in FORTRAN 66, which even runs on a PDP-11.
ivanpribec
·5 か月前·議論
*same translation unit as the call site
ivanpribec
·5 か月前·議論
I can see the subtle distinction you make. The flang notes on array composition provide a good introduction to the way array expressions (https://flang.llvm.org/docs/ArrayComposition.html) are treated.

But in practice it looks like the elemental function must be in the same translation unit for vectorization to occur with compilers popular today. Explicit options like !$omp declare simd are a different matter (and have different pitfalls).