diff mc-codegen.h @ 715:83e18db76c96

architecture depenedent argument alignment
author kono
date Wed, 14 Nov 2007 19:36:55 +0900
parents 0554b7f985ee
children 21f770a3b298
line wrap: on
line diff
--- a/mc-codegen.h	Sun Nov 11 20:11:35 2007 +0900
+++ b/mc-codegen.h	Wed Nov 14 19:36:55 2007 +0900
@@ -26,6 +26,7 @@
 
 /* these architecture dependent values are defined in mc-code-*.c */
 
+extern int size_of_pointer;
 extern int size_of_int;
 extern int size_of_short;
 extern int size_of_float;
@@ -99,6 +100,7 @@
 extern void gen_label_call(int l);
 extern void flush_delayed_decl_data(int v);
 extern void jump(int e,int env);
+extern int arg_alignment(int disp0,NMTBL *n,int type0,int sz);
 
 
 /* used by mc-inline */
@@ -137,6 +139,10 @@
 extern void clear_ptr_cache() ;
 extern int get_ptr_cache(NMTBL *nptr);
 
+// standard 32bit alignment
+extern int code_arg_alignment0(int disp0,NMTBL *n,int type0,int sz);
+extern int code_lvar_alignment0(int disp0,NMTBL *n,int type0,int sz);
+
 extern int ilog(int i);
 
 extern char * nm(NMTBL *n) ;