Skip to content
Permalink
Browse files

WIP (#635)

- WIP
  • Loading branch information...
tgiphil committed May 11, 2019
1 parent a8e2aa8 commit 8bfec19f929e816ade5d87fd112ae9aadb665c8f
Showing with 2,264 additions and 2,063 deletions.
  1. +3 −0 Demos/Windows/Run-Mosa.BareMetal.HelloWorld.x86.bat
  2. +23 −0 Source/Mosa.BareMetal.HelloWorld.x86/Boot.cs
  3. +44 −57 .../Mosa.Platform.ESP32.csproj → Mosa.BareMetal.HelloWorld.x86/Mosa.BareMetal.HelloWorld.x86.csproj}
  4. 0 Source/{Mosa.TestWorld.ESP32 → Mosa.BareMetal.HelloWorld.x86}/app.config
  5. +1 −1 Source/Mosa.Compiler.Extension.Dwarf/DwarfCompilerStage.cs
  6. +3 −1 Source/Mosa.Compiler.Framework.xUnit/Properties/AssemblyInfo.cs
  7. +22 −14 Source/Mosa.Compiler.Framework/BaseCompilerStage.cs
  8. +3 −3 Source/Mosa.Compiler.Framework/Compiler.cs
  9. +1 −1 Source/Mosa.Compiler.Framework/CompilerStages/DebugFileStage.cs
  10. +2 −2 Source/Mosa.Compiler.Framework/CompilerStages/ExceptionTableStage.cs
  11. +1 −1 Source/Mosa.Compiler.Framework/CompilerStages/LinkerEmitStage.cs
  12. +1 −2 Source/Mosa.Compiler.Framework/CompilerStages/LinkerLayoutStage.cs
  13. +2 −2 Source/Mosa.Compiler.Framework/CompilerStages/MapFileStage.cs
  14. +2 −2 Source/Mosa.Compiler.Framework/CompilerStages/MetadataStage.cs
  15. +1 −1 Source/Mosa.Compiler.Framework/CompilerStages/MethodCompileTimeStage.cs
  16. +2 −2 Source/Mosa.Compiler.Framework/CompilerStages/MethodTableStage.cs
  17. +88 −0 Source/Mosa.Compiler.Framework/CompilerStages/SetupStage.cs
  18. +1 −1 Source/Mosa.Compiler.Framework/CompilerStages/StaticFieldStage.cs
  19. +2 −4 Source/Mosa.Compiler.Framework/CompilerStages/TypeInitializerStage.cs
  20. BIN Source/Mosa.Compiler.Framework/GlobalSuppressions.cs
  21. +34 −0 Source/Mosa.Compiler.Framework/Intrinsics/StorePointer.cs
  22. +2 −2 Source/Mosa.Compiler.Framework/Stages/CallStage.cs
  23. +15 −14 Source/Mosa.Compiler.Framework/Stages/IRLongDecompositionStage.cs
  24. +28 −16 Source/Mosa.Compiler.MosaTypeSystem/Metadata/GenericArguments.cs
  25. +7 −4 Source/Mosa.Compiler.MosaTypeSystem/Metadata/RecursionCounter.cs
  26. +1 −1 Source/Mosa.DeviceSystem/BaseHardwareAbstraction.cs
  27. +143 −0 Source/Mosa.DeviceSystem/RegionalPointer.cs
  28. +13 −16 ...rnel.ESP32/Mosa.Kernel.ESP32.csproj → Mosa.Kernel.BareMetal.x64/Mosa.Kernel.BareMetal.x64.csproj}
  29. +45 −0 Source/Mosa.Kernel.BareMetal.x64/PlatformPlug.cs
  30. +19 −0 Source/Mosa.Kernel.BareMetal.x86/Address.cs
  31. +62 −0 Source/Mosa.Kernel.BareMetal.x86/Console.cs
  32. +73 −0 Source/Mosa.Kernel.BareMetal.x86/GDT/GDTTable.cs
  33. +32 −20 ...ime.ESP32/Mosa.Runtime.ESP32.csproj → Mosa.Kernel.BareMetal.x86/Mosa.Kernel.BareMetal.x86.csproj}
  34. +89 −0 Source/Mosa.Kernel.BareMetal.x86/PIC.cs
  35. +56 −0 Source/Mosa.Kernel.BareMetal.x86/PageTable.cs
  36. +72 −0 Source/Mosa.Kernel.BareMetal.x86/PlatformPlug.cs
  37. +18 −0 Source/Mosa.Kernel.BareMetal.x86/SSE.cs
  38. +122 −0 Source/Mosa.Kernel.BareMetal.x86/Screen.cs
  39. +30 −0 Source/Mosa.Kernel.BareMetal/AddressRange.cs
  40. +67 −0 Source/Mosa.Kernel.BareMetal/Alignment.cs
  41. +44 −0 Source/Mosa.Kernel.BareMetal/Boot.cs
  42. +34 −0 Source/Mosa.Kernel.BareMetal/BootMemory/BootMemoryMap.cs
  43. +39 −0 Source/Mosa.Kernel.BareMetal/BootMemory/BootMemoryMapEntry.cs
  44. +31 −0 Source/Mosa.Kernel.BareMetal/BootMemory/BootMemoryMapTable.cs
  45. +10 −0 Source/Mosa.Kernel.BareMetal/BootMemory/BootMemoryMapType.cs
  46. +141 −0 Source/Mosa.Kernel.BareMetal/Extension/IntPtrExtension.cs
  47. +25 −26 ...TestWorld.ESP32/Mosa.TestWorld.ESP32.csproj → Mosa.Kernel.BareMetal/Mosa.Kernel.BareMetal.csproj}
  48. +25 −0 Source/Mosa.Kernel.BareMetal/Multiboot.cs
  49. +160 −0 Source/Mosa.Kernel.BareMetal/MultibootSpecification/MultibootV1.cs
  50. +64 −0 Source/Mosa.Kernel.BareMetal/MultibootSpecification/MultibootV1MemoryMapEntry.cs
  51. +134 −0 Source/Mosa.Kernel.BareMetal/MultibootSpecification/MultibootV1VBEEntry.cs
  52. +26 −0 Source/Mosa.Kernel.BareMetal/Page.cs
  53. +41 −0 Source/Mosa.Kernel.BareMetal/PageTable.cs
  54. +31 −0 Source/Mosa.Kernel.BareMetal/PhysicalMemoryManager.cs
  55. +48 −0 Source/Mosa.Kernel.BareMetal/Platform.cs
  56. +33 −0 Source/Mosa.Kernel.BareMetal/VirtualMemoryManager.cs
  57. +0 −27 Source/Mosa.Kernel.ESP32/Address.cs
  58. +0 −14 Source/Mosa.Kernel.ESP32/Kernel.cs
  59. +0 −47 Source/Mosa.Kernel.ESP32/KernelMemory.cs
  60. +0 −1 Source/Mosa.Kernel.x86/Address.cs
  61. +19 −16 Source/Mosa.Kernel.x86/GDT.cs
  62. +13 −13 Source/Mosa.Kernel.x86/IDT.cs
  63. +2 −1 Source/Mosa.Kernel.x86/Kernel.cs
  64. +1 −1 Source/Mosa.Kernel.x86/SSE.cs
  65. +2 −2 Source/Mosa.Kernel.x86/Screen.cs
  66. +3 −0 Source/Mosa.Korlib/Mosa.Korlib.csproj
  67. +24 −0 Source/Mosa.Korlib/System.Runtime.CompilerServices/ITuple.cs
  68. +19 −0 Source/Mosa.Korlib/System/Tuple.cs
  69. +40 −0 Source/Mosa.Korlib/System/ValueTuple.cs
  70. +0 −261 Source/Mosa.Platform.ESP32/Architecture.cs
  71. +0 −23 Source/Mosa.Platform.ESP32/ArchitectureFeatureFlags.cs
  72. +0 −14 Source/Mosa.Platform.ESP32/BaseTransformationStage.cs
  73. +0 −36 Source/Mosa.Platform.ESP32/ESP32.cs
  74. +0 −225 Source/Mosa.Platform.ESP32/ESP32CodeEmitter.cs
  75. +0 −35 Source/Mosa.Platform.ESP32/ESP32Instruction.cs
  76. +0 −39 Source/Mosa.Platform.ESP32/ESP32Instructions.cs
  77. +0 −106 Source/Mosa.Platform.ESP32/GeneralPurposeRegister.cs
  78. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Abs.cs
  79. +0 −35 Source/Mosa.Platform.ESP32/Instructions/AbsS.cs
  80. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Add.cs
  81. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Add32.cs
  82. +0 −35 Source/Mosa.Platform.ESP32/Instructions/AddS.cs
  83. +0 −34 Source/Mosa.Platform.ESP32/Instructions/Addi.cs
  84. +0 −34 Source/Mosa.Platform.ESP32/Instructions/Addmi.cs
  85. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Addx2.cs
  86. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Addx4.cs
  87. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Addx8.cs
  88. +0 −35 Source/Mosa.Platform.ESP32/Instructions/All4.cs
  89. +0 −35 Source/Mosa.Platform.ESP32/Instructions/All8.cs
  90. +0 −35 Source/Mosa.Platform.ESP32/Instructions/And.cs
  91. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Andb.cs
  92. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Andbc.cs
  93. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Any4.cs
  94. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Any8.cs
  95. +0 −34 Source/Mosa.Platform.ESP32/Instructions/Ball.cs
  96. +0 −34 Source/Mosa.Platform.ESP32/Instructions/Bany.cs
  97. +0 −34 Source/Mosa.Platform.ESP32/Instructions/Bbc.cs
  98. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Bbci.cs
  99. +0 −35 Source/Mosa.Platform.ESP32/Instructions/Nop.cs
  100. +0 −18 Source/Mosa.Platform.ESP32/Intrinsic/Nop.cs
  101. +0 −34 Source/Mosa.Platform.ESP32/Stages/IRTransformationStage.cs
  102. +3 −3 Source/Mosa.Platform.Intel/CompilerStages/MultibootV1Stage.cs
  103. +1 −1 Source/Mosa.Platform.Intel/CompilerStages/StartUpStage.cs
  104. +0 −6 Source/Mosa.Platform.x64/CompilerStages/MultibootV1Stage.cs
  105. +3 −1 Source/Mosa.Platform.x64/Properties/AssemblyInfo.cs
  106. +1 −1 Source/Mosa.Platform.x86/Architecture.cs
  107. +1 −4 Source/Mosa.Platform.x86/CompilerStages/MultibootV1Stage.cs
  108. +0 −3 Source/Mosa.Platform.x86/Intrinsic/GetIRQHandler.cs
  109. +0 −9 Source/Mosa.Runtime.ESP32/Internal.cs
  110. +0 −19 Source/Mosa.Runtime.ESP32/Native.cs
  111. +0 −1 Source/Mosa.Runtime/Internal.cs
  112. +21 −0 Source/Mosa.Runtime/Intrinsic.cs
  113. +2 −17 Source/Mosa.Runtime/StartUp.cs
  114. +0 −26 Source/Mosa.TestWorld.ESP32/Boot.cs
  115. +2 −3 Source/Mosa.Tool.CreateBootImage/Options.cs
  116. +0 −1 Source/Mosa.Tool.CreateBootImage/Program.cs
  117. +1 −1 Source/Mosa.Tool.Explorer/CompilerStage/ExplorerMethodCompileTimeStage.cs
  118. +2 −1 Source/Mosa.Tool.Explorer/MainForm.cs
  119. +0 −4 Source/Mosa.Tool.Explorer/Mosa.Tool.Explorer.csproj
  120. +0 −1 Source/Mosa.Tool.Explorer/Stages/DebugInfoStage.cs
  121. +0 −4 Source/Mosa.Workspace.Experiment.Debug/Mosa.Workspace.Experiment.Debug.csproj
  122. +88 −86 Source/Mosa.sln
@@ -0,0 +1,3 @@
cd %~dp0
cd ..\..\bin
start Mosa.Tool.Launcher.exe --q --autostart --qemu --output-asm Mosa.BareMetal.HelloWorld.x86.exe
@@ -0,0 +1,23 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Kernel.BareMetal.x86;

namespace Mosa.BareMetal.HelloWorld.x86
{
/// <summary>
/// Boot
/// </summary>
public static class Boot
{
/// <summary>
/// Main
/// </summary>
public static void Main()
{
Screen.Backspace();

while (true)
{ }
}
}
}
@@ -4,27 +4,44 @@
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5B45AF28-3B67-4542-A0C9-947F3CDD9741}</ProjectGuid>
<ProjectGuid>{F1776FF2-A727-4FBF-B6BE-D37D6B019038}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>Mosa.Platform.ESP32</AssemblyName>
<AssemblyName>Mosa.BareMetal.HelloWorld.x86</AssemblyName>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<OutputType>Exe</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
<RootNamespace>Mosa.Platform.ESP32</RootNamespace>
<RootNamespace>Mosa.BareMetal.HelloWorld.x86</RootNamespace>
<StartupObject>Mosa.BareMetal.HelloWorld.x86.Boot</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
@@ -40,13 +57,13 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<NoWarn>0414</NoWarn>
<Prefer32Bit>false</Prefer32Bit>
<LangVersion>7.2</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
@@ -64,62 +81,32 @@
<LangVersion>7.2</LangVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Compile Include="Boot.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mosa.Compiler.Common\Mosa.Compiler.Common.csproj">
<Project>{0b1011a6-8fcd-4f9e-bbb8-8db86e23d2e8}</Project>
<Name>Mosa.Compiler.Common</Name>
</ProjectReference>
<ProjectReference Include="..\Mosa.Compiler.Framework\Mosa.Compiler.Framework.csproj">
<Project>{75A12A8A-8C8F-4D1E-801B-689D8F781BF4}</Project>
<Name>Mosa.Compiler.Framework</Name>
</ProjectReference>
<ProjectReference Include="..\Mosa.Compiler.MosaTypeSystem\Mosa.Compiler.MosaTypeSystem.csproj">
<Project>{5f30a68e-05bf-40ea-b576-5ebcde520559}</Project>
<Name>Mosa.Compiler.MosaTypeSystem</Name>
</ProjectReference>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="Architecture.cs" />
<Compile Include="ArchitectureFeatureFlags.cs" />
<Compile Include="ESP32.cs" />
<Compile Include="ESP32Instruction.cs" />
<Compile Include="ESP32Instructions.cs" />
<Compile Include="BaseTransformationStage.cs" />
<Compile Include="GeneralPurposeRegister.cs" />
<Compile Include="ESP32CodeEmitter.cs" />
<Compile Include="Instructions\Abs.cs" />
<Compile Include="Instructions\AbsS.cs" />
<Compile Include="Instructions\Add.cs" />
<Compile Include="Instructions\Add32.cs" />
<Compile Include="Instructions\Addi.cs" />
<Compile Include="Instructions\Addmi.cs" />
<Compile Include="Instructions\AddS.cs" />
<Compile Include="Instructions\Addx2.cs" />
<Compile Include="Instructions\Addx4.cs" />
<Compile Include="Instructions\Addx8.cs" />
<Compile Include="Instructions\All4.cs" />
<Compile Include="Instructions\All8.cs" />
<Compile Include="Instructions\And.cs" />
<Compile Include="Instructions\Andb.cs" />
<Compile Include="Instructions\Andbc.cs" />
<Compile Include="Instructions\Any4.cs" />
<Compile Include="Instructions\Any8.cs" />
<Compile Include="Instructions\Ball.cs" />
<Compile Include="Instructions\Bany.cs" />
<Compile Include="Instructions\Bbc.cs" />
<Compile Include="Instructions\Bbci.cs" />
<Compile Include="Instructions\Nop.cs" />
<Compile Include="Intrinsic\Nop.cs" />
<Compile Include="Stages\IRTransformationStage.cs" />
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mosa.Kernel.BareMetal.x86\Mosa.Kernel.BareMetal.x86.csproj">
<Project>{4cff6607-4d83-46e6-a1d0-ef045311c983}</Project>
<Name>Mosa.Kernel.BareMetal.x86</Name>
</ProjectReference>
<ProjectReference Include="..\Mosa.Kernel.BareMetal\Mosa.Kernel.BareMetal.csproj">
<Project>{4cff6607-4d83-46e6-a1d0-ef045311c984}</Project>
<Name>Mosa.Kernel.BareMetal</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
File renamed without changes.
@@ -14,7 +14,7 @@ namespace Mosa.Compiler.Extensions.Dwarf
{
internal class DwarfCompilerStage : BaseCompilerStage
{
protected override void RunPostCompile()
protected override void Finalization()
{
if (Linker.CreateExtraSections == null)
{
@@ -1,4 +1,6 @@
using System.Reflection;
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
@@ -64,56 +64,64 @@ public abstract class BaseCompilerStage
/// <value>The name of the compilation stage.</value>
public virtual string Name { get { return GetType().Name; } }

public void Initialize(Compiler compiler)
/// <summary>
/// Executes the initialization stage.
/// </summary>
public void ExecuteInitialization(Compiler compiler)
{
Debug.Assert(compiler != null);

Compiler = compiler;

Setup();
Initialization();
}

/// <summary>
/// Executes the pre-compile phase.
/// Executes the setup stage.
/// </summary>
public void ExecutePreCompile()
public void ExecuteSetup()
{
RunPreCompile();
if (Compiler.IsStopped)
{
return;
}

Setup();
}

/// <summary>
/// Executes the post compile phase.
/// Executes finalization stage.
/// </summary>
public void ExecutePostCompile()
public void ExecuteFinalization()
{
if (Compiler.IsStopped)
{
return;
}

RunPostCompile();
Finalization();
}

#region Overrides

/// <summary>
/// Setups this stage.
/// Runs the initialize stage.
/// </summary>
protected virtual void Setup()
protected virtual void Initialization()
{
}

/// <summary>
/// Runs pre compile stage.
/// Runs the setup stage.
/// </summary>
protected virtual void RunPreCompile()
protected virtual void Setup()
{
}

/// <summary>
/// Runs post compile stage.
/// Runs the finalization stage.
/// </summary>
protected virtual void RunPostCompile()
protected virtual void Finalization()
{
}

@@ -320,15 +320,15 @@ internal void Setup()

foreach (var stage in CompilerPipeline)
{
stage.Initialize(this);
stage.ExecuteInitialization(this);
}

foreach (var stage in CompilerPipeline)
{
PostCompilerTraceEvent(CompilerEvent.SetupStageStart, stage.Name);

// Execute stage
stage.ExecutePreCompile();
stage.ExecuteSetup();

PostCompilerTraceEvent(CompilerEvent.SetupStageEnd, stage.Name);
}
@@ -479,7 +479,7 @@ internal void Finalization()
PostCompilerTraceEvent(CompilerEvent.FinalizationStageStart, stage.Name);

// Execute stage
stage.ExecutePostCompile();
stage.ExecuteFinalization();

PostCompilerTraceEvent(CompilerEvent.FinalizationStageEnd, stage.Name);
}
@@ -22,7 +22,7 @@ public sealed class DebugFileStage : BaseCompilerStage

#endregion Data Members

protected override void RunPostCompile()
protected override void Finalization()
{
if (string.IsNullOrEmpty(CompilerOptions.DebugFile))
return;
@@ -18,12 +18,12 @@ public class ExceptionTableStage : BaseCompilerStage

#endregion Data Members

protected override void Setup()
protected override void Initialization()
{
NativePatchType = (TypeLayout.NativePointerSize == 4) ? PatchType.I4 : NativePatchType = PatchType.I8;
}

protected override void RunPostCompile()
protected override void Finalization()
{
CreateMethodExceptionLookupTable();
}
@@ -11,7 +11,7 @@ namespace Mosa.Compiler.Framework.CompilerStages
/// <seealso cref="Mosa.Compiler.Framework.BaseCompilerStage" />
public sealed class LinkerEmitStage : BaseCompilerStage
{
protected override void RunPostCompile()
protected override void Finalization()
{
if (!CompilerOptions.EmitBinary)
return;
@@ -1,7 +1,6 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Framework.Linker;
using System.IO;

namespace Mosa.Compiler.Framework.CompilerStages
{
@@ -11,7 +10,7 @@ namespace Mosa.Compiler.Framework.CompilerStages
/// <seealso cref="Mosa.Compiler.Framework.BaseCompilerStage" />
public sealed class LinkerLayoutStage : BaseCompilerStage
{
protected override void RunPostCompile()
protected override void Finalization()
{
if (string.IsNullOrEmpty(CompilerOptions.OutputFile))
return;
@@ -21,11 +21,11 @@ public sealed class MapFileStage : BaseCompilerStage

#endregion Data Members

protected override void Setup()
protected override void Initialization()
{
}

protected override void RunPostCompile()
protected override void Finalization()
{
if (string.IsNullOrEmpty(CompilerOptions.MapFile))
return;
@@ -24,12 +24,12 @@ public sealed class MetadataStage : BaseCompilerStage

#endregion Data Members

protected override void Setup()
protected override void Initialization()
{
NativePatchType = (TypeLayout.NativePointerSize == 4) ? PatchType.I4 : NativePatchType = PatchType.I8;
}

protected override void RunPostCompile()
protected override void Finalization()
{
Interfaces = TypeLayout.Interfaces;

@@ -12,7 +12,7 @@ namespace Mosa.Compiler.Framework.CompilerStages
/// <seealso cref="Mosa.Compiler.Framework.BaseCompilerStage" />
public class MethodCompileTimeStage : BaseCompilerStage
{
protected override void RunPostCompile()
protected override void Finalization()
{
if (string.IsNullOrEmpty(CompilerOptions.CompileTimeFile))
return;
Oops, something went wrong.

0 comments on commit 8bfec19

Please sign in to comment.
You can’t perform that action at this time.