Hacker News new | past | comments | ask | show | jobs | submit login

It can also show you assembly at the function level:

   julia> a=1+2im; b=2+4im; @code_native a+b
           .text
   ; ┌ @ complex.jl:271 within `+'
           pushq   %rbp
           movq    %rsp, %rbp
   ; │ @ complex.jl:271 within `+' @ int.jl:53
           vmovdqu (%r8), %xmm0
           vpaddq  (%rdx), %xmm0, %xmm0
   ; │ @ complex.jl:271 within `+'
           vmovdqu %xmm0, (%rcx)
           movq    %rcx, %rax
           popq    %rbp
           retq
           nopw    %cs:(%rax,%rax)
   ; └



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: