You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we're putting related symbols together in the file:
You want to sort same-address local labels by the address of the parent label. Build a mapping from parent name to parent address, such as {'Bar': 0x0000, 'Foo': 0x0002}, and then use that as a sort key for same-location labels. Sort by address, then parent address, then global before local.
If we're defining a "primary" name for each location:
If the reader treats the first encountered symbol for a location as the "primary" symbol for a location, you usually don't want an .end label to be primary. This means the writer would need to put .end labels last. Sort by address, then reverse parent address, then global before local. I was skimming the sym spec for a definition of a symbol being primary, and I couldn't find one.
The definition of "attached" in the sym spec has holes. I plan to bring this up as a separate issue, redefining it in terms of "follows".
Rangi42
added
enhancement
Typically new features; lesser priority than bugs
and removed
bug
Unexpected behavior / crashes; to be fixed ASAP!
labels
Nov 7, 2023
This .asm:
results in this .sym:
It would be better if
Foo
sorted beforeBar.end
. (Would it though?)The text was updated successfully, but these errors were encountered: