├── .github ├── FUNDING.yml ├── official-release-license.tmp └── workflows │ └── cicd.yml ├── .gitignore ├── BUILDING.md ├── LICENSE ├── README.md ├── samples ├── DynamicLibrary │ ├── README.md │ ├── library.cs │ └── libraryconsumer.cs ├── HelloWorld │ ├── README.md │ └── hello.cs ├── MinimalSize │ ├── README.md │ └── minimalsize.cs ├── Snake │ ├── FrameBuffer.cs │ ├── Game.cs │ ├── README.md │ ├── Random.cs │ └── Snake.cs └── Sokol │ ├── README.md │ ├── saudio.cs │ └── triangle.cs └── src ├── Directory.Build.props ├── bflat.Tests ├── BflatCompilation.cs ├── BflatCompilationResult.cs ├── UnitTest1.cs └── bflat.Tests.csproj ├── bflat ├── BflatTypeSystemContext.cs ├── BuildCommand.cs ├── CommandBase.cs ├── CommonOptions.cs ├── ConfigurablePInvokePolicy.cs ├── ILBuildCommand.cs ├── InstructionSetHelpers.cs ├── PerfWatch.cs ├── Program.cs └── bflat.csproj ├── debloat ├── Program.cs └── debloat.csproj └── zerolib ├── Internal ├── Runtime │ └── CompilerHelpers │ │ └── InteropHelpers.cs ├── Startup.Efi.cs ├── Startup.Unix.cs ├── Startup.Windows.cs └── Stubs.cs ├── README.md └── System ├── Array.cs ├── Attribute.cs ├── Console.Efi.cs ├── Console.Unix.cs ├── Console.Windows.cs ├── Console.cs ├── Delegate.cs ├── Enum.cs ├── Environment.Efi.cs ├── Environment.Unix.cs ├── Environment.Windows.cs ├── Math.cs ├── Nullable.cs ├── Object.Efi.cs ├── Object.cs ├── Primitives.cs ├── ReadOnlySpan.cs ├── Reflection └── ReflectionAttributes.cs ├── Runtime ├── CompilerServices │ ├── ClassConstructorRunner.cs │ ├── CompilerAttributes.cs │ ├── RuntimeFeature.cs │ ├── RuntimeHelpers.cs │ └── Unsafe.cs └── InteropServices │ ├── InteropAttributes.cs │ └── MemoryMarshal.cs ├── RuntimeHandles.cs ├── Span.cs ├── SpanHelpers.cs ├── String.cs ├── Thread.Efi.cs ├── Thread.Unix.cs ├── Thread.Windows.cs ├── Type.cs ├── ValueTuple.cs └── ValueType.cs /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: [ "https://paypal.me/MichalStrehovsky" ] 2 | -------------------------------------------------------------------------------- /.github/official-release-license.tmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/.github/official-release-license.tmp -------------------------------------------------------------------------------- /.github/workflows/cicd.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/.github/workflows/cicd.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/.gitignore -------------------------------------------------------------------------------- /BUILDING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/BUILDING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/README.md -------------------------------------------------------------------------------- /samples/DynamicLibrary/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/DynamicLibrary/README.md -------------------------------------------------------------------------------- /samples/DynamicLibrary/library.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/DynamicLibrary/library.cs -------------------------------------------------------------------------------- /samples/DynamicLibrary/libraryconsumer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/DynamicLibrary/libraryconsumer.cs -------------------------------------------------------------------------------- /samples/HelloWorld/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/HelloWorld/README.md -------------------------------------------------------------------------------- /samples/HelloWorld/hello.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/HelloWorld/hello.cs -------------------------------------------------------------------------------- /samples/MinimalSize/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/MinimalSize/README.md -------------------------------------------------------------------------------- /samples/MinimalSize/minimalsize.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/MinimalSize/minimalsize.cs -------------------------------------------------------------------------------- /samples/Snake/FrameBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Snake/FrameBuffer.cs -------------------------------------------------------------------------------- /samples/Snake/Game.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Snake/Game.cs -------------------------------------------------------------------------------- /samples/Snake/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Snake/README.md -------------------------------------------------------------------------------- /samples/Snake/Random.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Snake/Random.cs -------------------------------------------------------------------------------- /samples/Snake/Snake.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Snake/Snake.cs -------------------------------------------------------------------------------- /samples/Sokol/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Sokol/README.md -------------------------------------------------------------------------------- /samples/Sokol/saudio.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Sokol/saudio.cs -------------------------------------------------------------------------------- /samples/Sokol/triangle.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/samples/Sokol/triangle.cs -------------------------------------------------------------------------------- /src/Directory.Build.props: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/Directory.Build.props -------------------------------------------------------------------------------- /src/bflat.Tests/BflatCompilation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat.Tests/BflatCompilation.cs -------------------------------------------------------------------------------- /src/bflat.Tests/BflatCompilationResult.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat.Tests/BflatCompilationResult.cs -------------------------------------------------------------------------------- /src/bflat.Tests/UnitTest1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat.Tests/UnitTest1.cs -------------------------------------------------------------------------------- /src/bflat.Tests/bflat.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat.Tests/bflat.Tests.csproj -------------------------------------------------------------------------------- /src/bflat/BflatTypeSystemContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/BflatTypeSystemContext.cs -------------------------------------------------------------------------------- /src/bflat/BuildCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/BuildCommand.cs -------------------------------------------------------------------------------- /src/bflat/CommandBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/CommandBase.cs -------------------------------------------------------------------------------- /src/bflat/CommonOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/CommonOptions.cs -------------------------------------------------------------------------------- /src/bflat/ConfigurablePInvokePolicy.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/ConfigurablePInvokePolicy.cs -------------------------------------------------------------------------------- /src/bflat/ILBuildCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/ILBuildCommand.cs -------------------------------------------------------------------------------- /src/bflat/InstructionSetHelpers.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/InstructionSetHelpers.cs -------------------------------------------------------------------------------- /src/bflat/PerfWatch.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/PerfWatch.cs -------------------------------------------------------------------------------- /src/bflat/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/Program.cs -------------------------------------------------------------------------------- /src/bflat/bflat.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/bflat/bflat.csproj -------------------------------------------------------------------------------- /src/debloat/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/debloat/Program.cs -------------------------------------------------------------------------------- /src/debloat/debloat.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/debloat/debloat.csproj -------------------------------------------------------------------------------- /src/zerolib/Internal/Runtime/CompilerHelpers/InteropHelpers.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/Internal/Runtime/CompilerHelpers/InteropHelpers.cs -------------------------------------------------------------------------------- /src/zerolib/Internal/Startup.Efi.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/Internal/Startup.Efi.cs -------------------------------------------------------------------------------- /src/zerolib/Internal/Startup.Unix.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/Internal/Startup.Unix.cs -------------------------------------------------------------------------------- /src/zerolib/Internal/Startup.Windows.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/Internal/Startup.Windows.cs -------------------------------------------------------------------------------- /src/zerolib/Internal/Stubs.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/Internal/Stubs.cs -------------------------------------------------------------------------------- /src/zerolib/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/README.md -------------------------------------------------------------------------------- /src/zerolib/System/Array.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Array.cs -------------------------------------------------------------------------------- /src/zerolib/System/Attribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Attribute.cs -------------------------------------------------------------------------------- /src/zerolib/System/Console.Efi.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Console.Efi.cs -------------------------------------------------------------------------------- /src/zerolib/System/Console.Unix.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Console.Unix.cs -------------------------------------------------------------------------------- /src/zerolib/System/Console.Windows.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Console.Windows.cs -------------------------------------------------------------------------------- /src/zerolib/System/Console.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Console.cs -------------------------------------------------------------------------------- /src/zerolib/System/Delegate.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Delegate.cs -------------------------------------------------------------------------------- /src/zerolib/System/Enum.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Enum.cs -------------------------------------------------------------------------------- /src/zerolib/System/Environment.Efi.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Environment.Efi.cs -------------------------------------------------------------------------------- /src/zerolib/System/Environment.Unix.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Environment.Unix.cs -------------------------------------------------------------------------------- /src/zerolib/System/Environment.Windows.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Environment.Windows.cs -------------------------------------------------------------------------------- /src/zerolib/System/Math.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Math.cs -------------------------------------------------------------------------------- /src/zerolib/System/Nullable.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Nullable.cs -------------------------------------------------------------------------------- /src/zerolib/System/Object.Efi.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Object.Efi.cs -------------------------------------------------------------------------------- /src/zerolib/System/Object.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Object.cs -------------------------------------------------------------------------------- /src/zerolib/System/Primitives.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Primitives.cs -------------------------------------------------------------------------------- /src/zerolib/System/ReadOnlySpan.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/ReadOnlySpan.cs -------------------------------------------------------------------------------- /src/zerolib/System/Reflection/ReflectionAttributes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Reflection/ReflectionAttributes.cs -------------------------------------------------------------------------------- /src/zerolib/System/Runtime/CompilerServices/ClassConstructorRunner.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Runtime/CompilerServices/ClassConstructorRunner.cs -------------------------------------------------------------------------------- /src/zerolib/System/Runtime/CompilerServices/CompilerAttributes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Runtime/CompilerServices/CompilerAttributes.cs -------------------------------------------------------------------------------- /src/zerolib/System/Runtime/CompilerServices/RuntimeFeature.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Runtime/CompilerServices/RuntimeFeature.cs -------------------------------------------------------------------------------- /src/zerolib/System/Runtime/CompilerServices/RuntimeHelpers.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Runtime/CompilerServices/RuntimeHelpers.cs -------------------------------------------------------------------------------- /src/zerolib/System/Runtime/CompilerServices/Unsafe.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Runtime/CompilerServices/Unsafe.cs -------------------------------------------------------------------------------- /src/zerolib/System/Runtime/InteropServices/InteropAttributes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Runtime/InteropServices/InteropAttributes.cs -------------------------------------------------------------------------------- /src/zerolib/System/Runtime/InteropServices/MemoryMarshal.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Runtime/InteropServices/MemoryMarshal.cs -------------------------------------------------------------------------------- /src/zerolib/System/RuntimeHandles.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/RuntimeHandles.cs -------------------------------------------------------------------------------- /src/zerolib/System/Span.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Span.cs -------------------------------------------------------------------------------- /src/zerolib/System/SpanHelpers.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/SpanHelpers.cs -------------------------------------------------------------------------------- /src/zerolib/System/String.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/String.cs -------------------------------------------------------------------------------- /src/zerolib/System/Thread.Efi.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Thread.Efi.cs -------------------------------------------------------------------------------- /src/zerolib/System/Thread.Unix.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Thread.Unix.cs -------------------------------------------------------------------------------- /src/zerolib/System/Thread.Windows.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Thread.Windows.cs -------------------------------------------------------------------------------- /src/zerolib/System/Type.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/Type.cs -------------------------------------------------------------------------------- /src/zerolib/System/ValueTuple.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/ValueTuple.cs -------------------------------------------------------------------------------- /src/zerolib/System/ValueType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bflattened/bflat/HEAD/src/zerolib/System/ValueType.cs --------------------------------------------------------------------------------