This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]