Right now, cargo asm errors out if not enough package and target selection options are passed to choose a single Cargo target. However, in the presence of generics or inlining, it may not be possible to know up front what target contains the function of interest. This results in my having to run multiple cargo asm commands to guess where the monomorphized function, if any, landed.
I would like cargo asm to automate this by allowing searching multiple targets if multiple targets are present. The output should specify the target in addition to the symbol name.
This may be slow, so it could print advice suggesting the appropriate filtering options for future runs. It could also cache symbols found in previous runs and build only that target next time, but that could guess wrong and hide ambiguity, particularly if a code change changes inlining decisions.
Right now,
cargo asmerrors out if not enough package and target selection options are passed to choose a single Cargo target. However, in the presence of generics or inlining, it may not be possible to know up front what target contains the function of interest. This results in my having to run multiplecargo asmcommands to guess where the monomorphized function, if any, landed.I would like
cargo asmto automate this by allowing searching multiple targets if multiple targets are present. The output should specify the target in addition to the symbol name.This may be slow, so it could print advice suggesting the appropriate filtering options for future runs. It could also cache symbols found in previous runs and build only that target next time, but that could guess wrong and hide ambiguity, particularly if a code change changes inlining decisions.