On 08/03/2009 02:14 AM, Mohamed Shafi wrote:
short - 2 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

You haven't explained what the actual problem is. Is there a problem with global variables? Is the variable initialized or uninitialized? If it is uninitialized, is it common? If this a local variable? Is this a function argument or parameter? Is this a named or unnamed (stdarg) argument or parameter? Etc. It always helps to include a testcase.

You should also mention what gcc is currently emitting, why it is wrong, and what the output should be instead.

All this talk about stack and parm boundary suggests that it might be an issue with function arguments, in which case you will probably have to describe the calling conventions a bit so we can understand what you want.

Jim

Reply via email to