code_native
code_native(f, types)
Prints the native assembly instructions generated for running the method matching the given generic function and type signature to STDOUT
.
Examples
julia> mysin(x) = ccall((:sin,"libm"), Cdouble, (Cdouble,), x)
@vectorize_1arg Real mysin
mysin([1,2,3,4])
code_native(mysin, (Float64,))
.text
Filename: In[11]
Source line: 1
push RBP
mov RBP, RSP
movabs RAX, 140193336993536
Source line: 1
call RAX
pop RBP
ret
See Also
assert, backtrace, code_llvm, code_lowered, code_native, code_typed, code_warntype, :@which, compilecache, current_module, eval, finalize, finalizer, fullname, function_module, function_name, include_dependency, InterruptException, invoke, isconst, isdefined, isgeneric, methodswith, method_exists, module_name, module_parent, require, subtypes, unsafe_load, workspace, __precompile__,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.