cmd/internal/obj/x86: improve asm error messages #21860
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Some assembler error messages are misleading and miss context info.
99% of errors programmer get is
invalid instruction
which does not help that much.Go (or plan9) asm has its peculiar points that make initial experience, coupled with such error messages,
very unpleasant.
There are multiple aspects of error messages that can be improved, but for the very start,
some obviously horrible things can be changed.
I present some cases where error message could be more precise/informative.
If applicable,
clang
asm error message for the same case is provided.This is a proposal to start a discussion regarding this topic.
Maybe someone will point important pitfalls, or provide more cases
that worth a fix.
Scope of this one restricted to x86 assembler backend.
The text was updated successfully, but these errors were encountered: