# Compile (and call) a C function from Julia

**URL:** <https://discourse.julialang.org/t/compile-and-call-a-c-function-from-julia/10770>\
**Category:** Offtopic\
**Created:** [May 7, 2018, 10:55pm UTC](https://discourse.julialang.org/t/compile-and-call-a-c-function-from-julia/10770 "2018-05-07T22:55:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [May 21, 2018, 5:35pm UTC](https://discourse.julialang.org/t/compile-and-call-a-c-function-from-julia/10770/5 "2018-05-21T17:35:03Z")

</div>

Thank you very much for the link ! The conciseness of the C function build looks like blackmagic 😮 I should add this one to [Sum performance for Array{Float64,2} elements - #14 by LaurentPlagne](https://discourse.julialang.org/t/sum-performance-for-array-float64-2-elements/10873/14) benchmark curves (I think I remember that gcc did not perform very well on that specific loop).

---

_[View the full topic](https://discourse.julialang.org/t/compile-and-call-a-c-function-from-julia/10770)._
