Class: Rucc::Gen
- Inherits:
-
Object
- Object
- Rucc::Gen
- Defined in:
- lib/rucc/gen.rb
Constant Summary collapse
- REGS =
["rdi", "rsi", "rdx", "rcx", "r8", "r9"].freeze
- SREGS =
["dil", "sil", "dl", "cl", "r8b", "r9b"].freeze
- MREGS =
["edi", "esi", "edx", "ecx", "r8d", "r9d"].freeze
Instance Method Summary collapse
- #emit_toplevel(v) ⇒ Object
-
#initialize(output, label_gen) ⇒ Gen
constructor
A new instance of Gen.
Constructor Details
#initialize(output, label_gen) ⇒ Gen
Returns a new instance of Gen.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rucc/gen.rb', line 11 def initialize(output, label_gen) @output = output @label_gen = label_gen @stackpos = nil # number of float and int @numgp = nil @numfp = nil end |