Ejemplo n.º 1
0
            static void GetMethodAddressLookup(LinkTableBuilder methodTableBuilder, int startAddress, IReadOnlyList <Method> methods)
            {
                var methodAddress = startAddress;

                foreach (var method in methods)
                {
                    methodTableBuilder.AddTarget(method.Name, methodAddress);
                    methodAddress += method.Size;
                }
            }
Ejemplo n.º 2
0
 private Linker()
 {
     _labelTableBuilder  = new LinkTableBuilder();
     _methodTableBuilder = new LinkTableBuilder();
     _comments           = new Dictionary <IlAddress, List <string> >();
 }