As Milan says, you shouldn't need C unless your program requires something 
like LAPACK or BLAS. Before even thinking about C you should read

http://docs.julialang.org/en/release-0.3/manual/performance-tips/

*very* carefully. If you're still struggling with performance issues feel 
free to ask questions about on here.

On Tuesday, 24 February 2015 09:13:52 UTC, [email protected] wrote:
>
> Hello,
>
> I am a beginner to Julia and would like to try out some features. I would 
> like to improve performances of some bottleneck functions by translating 
> them into C.
> A simple example is :
> main.jl
>
> a ::Int64 = 20      
> b ::Int64 = 10
> ccall(:do_sum, Int64, (Int64, Int64), a, b)
>
>
>
> test.c
> #include <stdio.h>
>
> int do_sum (int a,int b)
> {
> int c;
> c = a+b;
> printf("f\n:",c);
> return c;
> }
>
> where should I put the C file ? 
>
> Thanks,
> G.
>
>

Reply via email to