mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
Chekc i missin file
This commit is contained in:
parent
e9d22e843d
commit
ea41827fda
5 changed files with 138 additions and 1 deletions
49
source/HelloWorldMetal/HelloWorldMetal.csproj
Normal file
49
source/HelloWorldMetal/HelloWorldMetal.csproj
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.20706</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{B57BEF6D-48D6-49DD-B4C5-893537E0EBB8}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>HelloWorldMetal</RootNamespace>
|
||||
<AssemblyName>HelloWorldMetal</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
10
source/HelloWorldMetal/HelloWorldMetal.csproj.vspscc
Normal file
10
source/HelloWorldMetal/HelloWorldMetal.csproj.vspscc
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
""
|
||||
{
|
||||
"FILE_VERSION" = "9237"
|
||||
"ENLISTMENT_CHOICE" = "NEVER"
|
||||
"PROJECT_FILE_RELATIVE_PATH" = ""
|
||||
"NUMBER_OF_EXCLUDED_FILES" = "0"
|
||||
"ORIGINAL_PROJECT_FILE_PATH" = ""
|
||||
"NUMBER_OF_NESTED_PROJECTS" = "0"
|
||||
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
|
||||
}
|
||||
33
source/HelloWorldMetal/Program.cs
Normal file
33
source/HelloWorldMetal/Program.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
|
||||
namespace HelloWorldMetal {
|
||||
// Restrictions for Metal compile is that static members only, and no heap usage
|
||||
// Basic string support is provided by using c strings in data sections
|
||||
class Program {
|
||||
// These would be output in the data section. Since no heap exists,
|
||||
// all are treated as globals and space is fixed and preallocated
|
||||
static int Level = 0;
|
||||
static string StringValue = "Hello";
|
||||
|
||||
static void Main() {
|
||||
// Local variables are ok too, since they are stack based
|
||||
int i = 0;
|
||||
// String literals translate to ldstr - these would automatically be pulled out
|
||||
// and put in the data section. String manipuation not permitted unless the actual
|
||||
// bytes are modified directly.
|
||||
//
|
||||
// Implement the P/Invoke interface. This will allow interfacing to Windows
|
||||
// and other systems.
|
||||
//
|
||||
// Certain statics can have points mapped and replaced with future metal code
|
||||
// or translations to P/Invokes.
|
||||
// Such as Console.Write. It can be determined by name and remapped to
|
||||
// the Win32 calll.
|
||||
// Console.Write("Hello World");
|
||||
// For now - lets stick with P/Invoke only - I want to do some more investigation
|
||||
// around map replacement
|
||||
// So the current test would be - declare a P/Invoke for writing to console in Win32
|
||||
// then call it below with "HelloWorld"
|
||||
}
|
||||
}
|
||||
}
|
||||
36
source/HelloWorldMetal/Properties/AssemblyInfo.cs
Normal file
36
source/HelloWorldMetal/Properties/AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("HelloWorldMetal")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("HelloWorldMetal")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2007")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("64e502f4-e371-46df-b089-0d6f6e11d778")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
|
@ -19,9 +19,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Indy.IL2CPU.IL.X86", "Indy.
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorldAssembler", "HelloWorldAssembler\HelloWorldAssembler.csproj", "{E17BC1C6-3E4F-443F-804E-CB43A5610DDB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorldMetal", "HelloWorldMetal\HelloWorldMetal.csproj", "{B57BEF6D-48D6-49DD-B4C5-893537E0EBB8}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(TeamFoundationVersionControl) = preSolution
|
||||
SccNumberOfProjects = 10
|
||||
SccNumberOfProjects = 11
|
||||
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
|
||||
SccTeamFoundationServer = https://tfs04.codeplex.com/
|
||||
SccLocalPath0 = .
|
||||
|
|
@ -52,6 +54,9 @@ Global
|
|||
SccProjectUniqueName9 = HelloWorldAssembler\\HelloWorldAssembler.csproj
|
||||
SccProjectName9 = HelloWorldAssembler
|
||||
SccLocalPath9 = HelloWorldAssembler
|
||||
SccProjectUniqueName10 = HelloWorldMetal\\HelloWorldMetal.csproj
|
||||
SccProjectName10 = HelloWorldMetal
|
||||
SccLocalPath10 = HelloWorldMetal
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
|
@ -94,6 +99,10 @@ Global
|
|||
{E17BC1C6-3E4F-443F-804E-CB43A5610DDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E17BC1C6-3E4F-443F-804E-CB43A5610DDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E17BC1C6-3E4F-443F-804E-CB43A5610DDB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B57BEF6D-48D6-49DD-B4C5-893537E0EBB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B57BEF6D-48D6-49DD-B4C5-893537E0EBB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B57BEF6D-48D6-49DD-B4C5-893537E0EBB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B57BEF6D-48D6-49DD-B4C5-893537E0EBB8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
|||
Loading…
Reference in a new issue