diff options
| -rw-r--r-- | miasm2/arch/x86/ira.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/miasm2/arch/x86/ira.py b/miasm2/arch/x86/ira.py index bf07e7c2..edd4a52a 100644 --- a/miasm2/arch/x86/ira.py +++ b/miasm2/arch/x86/ira.py @@ -106,3 +106,18 @@ class ir_a_x86_64(ir_x86_64, ir_a_x86_16): ExprAff(self.sp, ExprOp('call_func_stack', ad, self.sp)), ]] return irs + + def sizeof_char(self): + return 8 + + def sizeof_short(self): + return 16 + + def sizeof_int(self): + return 32 + + def sizeof_long(self): + return 64 + + def sizeof_pointer(self): + return 64 |