# Fortran vs Julia stack allocated arrays

**URL:** <https://discourse.julialang.org/t/fortran-vs-julia-stack-allocated-arrays/18119>\
**Category:** Performance\
**Tags:** array, memory-allocation\
**Created:** [November 28, 2018, 11:02pm UTC](https://discourse.julialang.org/t/fortran-vs-julia-stack-allocated-arrays/18119 "2018-11-28T23:02:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![foobar\_lv2](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Post date:** [November 28, 2018, 11:49pm UTC](https://discourse.julialang.org/t/fortran-vs-julia-stack-allocated-arrays/18119/5 "2018-11-28T23:49:32Z")

</div>

`MArray` is mostly heap allocated ☹

I don’t even know how to get this by `llvmcall` (in case of statically known dimensions). I asked in [https://discourse.julialang.org/t/mutate-ntuple-at-position/17682](https://discourse.julialang.org/t/mutate-ntuple-at-position/17682).

---

_[View the full topic](https://discourse.julialang.org/t/fortran-vs-julia-stack-allocated-arrays/18119)._
