[Nasm-devel] DWARF emitters refactoring

Igor Munkin imun at cpan.org
Mon Oct 12 14:09:32 PDT 2020


Hi, Peter!

I dove a little into NASM sources, so I guess I can ask you the right
questions about the task we were talking in private some time ago. I
hope we'll find the "definition of done" for it within this thread.

At first I would like to clarify my vision of the task you described:
the refactoring you intended contains
* DWARF emitters code unification (based on the Mach-O parts)
* Get rid of several linear searches implementing lookup via the
  specific function
* Introduce <smacro> and <mmacro> debug info emitters

I start with the latter one: smacro and mmacro relate to single line and
multi line NASM macros respectively, don't them? I see these emitters
are implemented only for debug (i.e. plain text) format. Is there any
description how this should be generated in DWARF case? If there is
everything I need in the DWARF spec[1], I'll study it later.

As for linear searches, could you please provide an example how such
lookups *should* be done?

At last, I have a question regarding the patchset organization: are the
complete series more preferable or would you prefer three (considering
the bullet list above) separate patches? Should the drafts be sent to
the nasm-patches too?

[1]: http://www.dwarfstd.org/Download.php

-- 
Best regards,
IM


More information about the Nasm-devel mailing list