What is significance of Stack Alignment, when compared to Data Alignment(Word Aligned/Word Addressable memory)?
In case of Data Alignment, I can relate it to a problem (code snippet attached) and provide a solution. But for stack alignment, I really don't understand the use & problems involved?
I would be grateful, if someone could help me understand:
1. Why we need stack alignment?
2. What problem could arise? (After this tell me try, to find a solution to the problem using Stack Alignment concept)
/* Unaligned Structure */
/* Aligned Structure */