When diffing target against base, the diff_code function uses the target arch object to process code for both target and base, and the base arch object goes unused.
From what I can tell, all currently supported architectures have the same parameters in the two arch objects, so it doesn't matter which one gets used to process code. However, I'm working on supporting ARMv5TE, and my arch objects can have different parameters.
When diffing target against base, the
diff_code
function uses the target arch object to process code for both target and base, and the base arch object goes unused.From what I can tell, all currently supported architectures have the same parameters in the two arch objects, so it doesn't matter which one gets used to process code. However, I'm working on supporting ARMv5TE, and my arch objects can have different parameters.