c++ linkage for stage0