gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

asm parser lacking `label` parse functionality

Open badumbatish opened this issue 1 year ago • 0 comments

In rust's asm.rs I misunderstood eat_keyword(label) for "tracks if there is any number that is followed by a :" to be a label. The former is explicitly a label and the latter is a local label.

The former needs to be parsed explicitly and put in a hashmap or set to be expanded later.

The latter can be implicitly parsed via parse_format_strings, it is passed straight into the assembler.

For docs rust zulip asm discussion arm's docs on local label rust's asm goto rust's tracking issue

badumbatish avatar Jun 27 '24 16:06 badumbatish