Assembly language is a low-level programming language for a computer, or other programmable device, in which there is a very strong correspondence between the language and the architectures machine code instructions.
Assembly Anti-Patterns Overview
Hardcoded Memory Addresses
Not Using Comments
Self-Modifying Code
Not Preserving Registers
Excessive Use of Jumps
Not Using Stack Frames
Magic Numbers
Inefficient Memory Access Patterns
Not Checking Return Values
Not Using Appropriate Instructions
xor reg, reg
is faster and smaller than mov reg, 0
for clearing a register.Not Using Macros for Common Patterns
Not Using Proper Data Alignment
Not Using SIMD Instructions When Appropriate
Not Using Proper Segmentation
Not Using Proper Stack Management
push
should have a corresponding pop
, and they should be in the correct order.Not Using Proper Function Documentation
Not Using Proper Testing
Not Using Version Control