assembly - How do you program in assembler? -


So I have never done any programming (although I read something / hand assembly in CS classes)

I am curious in a way that when people are seriously slow and even today when C / other (barely) high level languages ​​are considered, people do serious assembly programming.

Do people use it?

Some types of text macros? Comments on every line?

Do people have agreed on the call stack to the conventions? Do they use a text editor or some kind of ideas?

And any other interesting content.

In addition to how you behave with strings (probably just ASCI), and strings / unions (composite data data) (such as making them easier to write code to create and manipulate them )?

P.P.S. Do people usually call the C library functions provided by the OS from the assembly?

The easiest and most important answer question "How do you program in assembler?":

As you wish, the main reason for this assembly is control.

  • The HLA is obsolete.
  • Macros can help define tireless and / or verbose functions such as calling function and import sections. Experiment with care, though. If you use them too much then it can make your code unreadable to others.
  • Comments on every line? No, microbial assembly harms the language, because not every line is necessarily a complete functional block.
  • If you make your own calls, then make the best of the way you think. Often you work with a previously installed API / ABI, such as WinAPI.
  • The line between "Text Editor" and "Idea" is blurred, as many text editors have the ideal functionality, according to my definition, the main difference is that the ICD has a debugger built-in.
  • If you do not have a standard library to help you with string manipulation, then you have to make your own,
  • Working with the structures in the assembly is no different.

Edit:

Ul>
  • Yes, some people want to use the C function via MSVCTLLL, for example. I believe this will be true even in Unix world :)

  • Comments