anchor.diff:      % call the main "piqic-erlang" compiler to generate *_piqi.{erl,hrl}
       piqic_erlang:generate(Context),
   
  +    gen_rpc_erl(Context),
  +    gen_impl_hrl(Context),
  +    gen_default_impl_erl(Context),
  +    ok.
  +
  +
  +%
  +% Generating Piqi-RPC server stubs: <ErlMod>_rpc.erl
  +%
  +
  +gen_rpc_erl(Context) ->
       Piqi = Context#context.piqi,
  -    gen_rpc_erl(Piqi),
  -    gen_impl_hrl(Piqi),
  -    gen_default_impl_erl(Piqi),
  -    ok.
  -
  -
  -%
  -% Generating Piqi-RPC server stubs: <ErlMod>_rpc.erl
  -%
  -
  -gen_rpc_erl(Piqi) ->
       Mod = Piqi#piqi.module,
       ErlMod = to_string(Piqi#piqi.erlang_module),
       FuncList = Piqi#piqi.func,
  
positive.code:             'undefined' -> % the function doesn't produce output
  "                ok -> ok";
              _ ->
                  [
  "                {ok, Output} ->\n"
  "                    piqi_rpc_runtime:encode_output(?MODULE, fun ", ErlMod, ":gen_", ErlTypeName, "_output/1, <<\"", ScopedName, "-output\">>, _OutputFormat, Output, Options)"
                  ]
          end,
  
  
negative.code: gen_export(F) ->
      ["-export([", F#func.erlang_name, "/1]).\n"].
  
  gen_default_impls(Context, FuncList) ->
      [ gen_default_impl(Context, X) || X <- FuncList ].
  
  gen_default_impl(Context, F) ->
      Piqi = Context#context.piqi,
      ErlMod = Piqi#piqi.erlang_module,
  
      Input =
          case F#func.input of
              'undefined' -> "'undefined'";
  