Boo

Avoid emitting superfluous st/ld opcodes

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 0.7.8
  • Fix Version/s: 0.9.5
  • Component/s: Emitter
  • Labels:
    None
  • Number of attachments :
    0

Description

{{
IL_0000: ldstr "Hello"
IL_0005: ldc.i4.4
IL_0006: call string [Boo.Lang]Boo.Lang.Runtime.RuntimeServices::op_Multiply(string, int32)
IL_000b: stloc.0
IL_000c: ldloc.0
IL_000d: call void [mscorlib]System.Console::WriteLine(string)
}}

IL_000b and IL_000c can safely be discarded in order to generate leaner assemblies.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: