Search code examples
assemblycoding-stylemips

Assembly Coding Standards / Best Practices


I've know 8086 Assembly and now I'm learning MIPS Assembly by reading the books MIPS Assembly Language Programming and See MIPS Run, but I never stopped to think about the coding standards/best practices of Assembly. I want to turn me in a better developer each day, then want to know this to improve myself. How can I learn more about assembly coding standards and best practices?


Solution

  • Best practice is a social phenomenon, depending on the society that you will be working in, so your best answer would be to read existing MIPS asm code from whatever environment you expect to interact with.

    Examples that come to mind from my own world are the assembler sections of Linux kernel, the MIPS startup code from GCC or the assembler fragments of the MIPS port of glibc.

    If you'll primarily be interacting with other projects, it's best to absorb and imitate the coding practices of that community.