JuliaInterop / Cxx.jl

The Julia C++ Interface
Other
755 stars 107 forks source link

@code_native doesn't show assembly for C++ function #462

Open klaff opened 4 years ago

klaff commented 4 years ago
cxx"""
double f(double x)
{
    return 2.0*pow(x,4)-3.0*pow(x,3)+2.0*pow(x,2)-x;
}
"""
jf(x) = @cxx f(x)

Trying to inspect the assembly code created by doing @code_native jf(2.0) does not show the assembly for f(x) but appears to show assembly for code that calls f(x).