This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to set the alignment
- From: Mohamed Shafi <shafitvm at gmail dot com>
- To: GCC <gcc at gcc dot gnu dot org>
- Date: Mon, 3 Aug 2009 14:44:05 +0530
- Subject: How to set the alignment
Hello all,
I am doing a private port in GCC 4.4.0. For my target the following
are the alignment requirements:
int - 4 bytes
short - 2 bytes
char - 1 byte
pointer - 4 bytes
stack pointer - 4 bytes
i am not able to implement the alignment for short.
The following is are the macros that i used for this
#define PARM_BOUNDARY 8
#define STACK_BOUNDARY 64
I have also defined STACK_SLOT_ALIGNMENT. but this is not affecting the output.
What should i be doing to get the required alignment?
Regards,
Shafi