DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Looking at consequences of passing too few register parameters to a C function on various architectures

Quality: 9/10 Relevance: 6/10

Summary

This article analyzes the consequences of calling a C function with too few parameters across architectures. It explains undefined behavior per the C/C++ standards, how different calling conventions handle missing parameters, potential stack and register corruption, and Itanium-specific quirks such as the NaT bit and architectural call rules. The piece emphasizes the importance of adhering to ABI rules to avoid crashes and subtle bugs.

🚀 Service construit par Johan Denoyer