diff python/outstream.py @ 258:04c19282a5aa

Added register allocator
author Windel Bouwman
date Mon, 05 Aug 2013 19:46:11 +0200
parents f5fba5b554d7
children ac603eb66b63
line wrap: on
line diff
--- a/python/outstream.py	Sun Aug 04 18:34:06 2013 +0200
+++ b/python/outstream.py	Mon Aug 05 19:46:11 2013 +0200
@@ -25,6 +25,10 @@
             d.extend(insword)
         return bytes(d)
 
+    @property
+    def Size(self):
+        return len(self.to_bytes())
+
     def debugInfos(self):
         di = [i for i in self.instructions if isinstance(i, DebugInfo)]
         return di