diff --git a/IDE/mintest/BeefProj.toml b/IDE/mintest/BeefProj.toml index 660eb293..215f92b4 100644 --- a/IDE/mintest/BeefProj.toml +++ b/IDE/mintest/BeefProj.toml @@ -11,7 +11,6 @@ Description = "Mintest" [Configs.Debug.Win64] CLibType = "Static" -BeefLibType = "DynamicDebug" StackSize = 4194304 DebugCommandArguments = "hey=\"yo man\" zag= zoogles boof stoopers \"\"\"abc efg\"\"\"" DebugWorkingDirectory = ".\\" @@ -92,10 +91,6 @@ RelocType = "PIC" Type = "Folder" Name = "snorg" -[[ProjectFolder.Items.Items]] -Type = "IgnoreSource" -Name = "Zap.bf" - [[ProjectFolder.Items]] Type = "Source" Path = "../../../temp/test.txt" diff --git a/IDE/mintest/BeefSpace.toml b/IDE/mintest/BeefSpace.toml index cf1b07fd..c182e1b7 100644 --- a/IDE/mintest/BeefSpace.toml +++ b/IDE/mintest/BeefSpace.toml @@ -1,8 +1,10 @@ FileVersion = 1 Projects = {mintest = {Path = "."}, minlib = {Path = "minlib"}, LibA = {Path = "LibA"}, LibB = {Path = "LibB"}, mintest2 = {Path = "mintest2"}} +ExtraPlatforms = ["Linux64"] [Workspace] StartupProject = "mintest" +PreprocessorMacros = ["z5"] [Configs.Debug.Win32] InitLocalVariables = true @@ -20,32 +22,15 @@ COptimizationLevel = "Og" Filter = "System.String" [Configs.Debug.WinFart] -Toolset = "GNU" EmitDebugInfo = "No" EmitDynamicCastCheck = false EnableObjectDebugFlags = false EmitObjectAccessCheck = false -EnableRealtimeLeakCheck = false -AllowHotSwapping = false AllocStackTraceDepth = 0 -[Configs.Debug.Linux64] -Toolset = "GNU" -EnableRealtimeLeakCheck = false - -[Configs.Debug.macOS] -Toolset = "GNU" -EnableRealtimeLeakCheck = false - [Configs.Debug.iOS] -Toolset = "GNU" -EnableRealtimeLeakCheck = false IntermediateType = "Bitcode" -[Configs.Debug.aarch64-none-linux-android21] -Toolset = "GNU" -EnableRealtimeLeakCheck = false - [Configs.Release.Win32] Toolset = "GNU" BfOptimizationLevel = "OgPlus" @@ -61,125 +46,18 @@ AllocStackTraceDepth = 0 IntermediateType = "ObjectAndIRCode" COptimizationLevel = "O3" -[Configs.Release.WinFart] -Toolset = "GNU" -BfOptimizationLevel = "O0" -EmitDebugInfo = "No" -AllocStackTraceDepth = 0 -IncrementalBuild = true -COptimizationLevel = "O0" - -[Configs.Release.Linux64] -Toolset = "GNU" - -[Configs.Release.macOS] -Toolset = "GNU" - [Configs.Release.iOS] -Toolset = "GNU" IntermediateType = "Bitcode" -[Configs.Release.aarch64-none-linux-android21] -Toolset = "GNU" - -[Configs.Test.Win32] -Toolset = "GNU" -BfSIMDSetting = "None" -EmitDebugInfo = "No" -EmitDynamicCastCheck = false -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false -EnableRealtimeLeakCheck = false -AllocStackTraceDepth = 0 -CSIMDSetting = "None" -COptimizationLevel = "O2" -ConfigSelections = {mintest = {Config = "Debug"}} - -[Configs.Test.WinFart] -Toolset = "GNU" -BuildKind = "Normal" -EmitDebugInfo = "No" -EmitDynamicCastCheck = false -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false -EnableRealtimeLeakCheck = false -AllowHotSwapping = false -AllocStackTraceDepth = 0 -COptimizationLevel = "O2" - -[Configs.Test.Linux64] -Toolset = "GNU" -EnableRealtimeLeakCheck = false -COptimizationLevel = "O2" - [Configs.Test.macOS] -Toolset = "GNU" -EnableRealtimeLeakCheck = false COptimizationLevel = "O2" [Configs.Test.iOS] -Toolset = "GNU" -EnableRealtimeLeakCheck = false IntermediateType = "Bitcode" COptimizationLevel = "O2" [Configs.Test.aarch64-none-linux-android21] -Toolset = "GNU" -EnableRealtimeLeakCheck = false -COptimizationLevel = "O2" - -[Configs.Paranoid.Win32] -Toolset = "GNU" -EmitDynamicCastCheck = false -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false -EnableRealtimeLeakCheck = false -EnableSideStack = false -COptimizationLevel = "O2" - -[Configs.Paranoid.Win64] -Toolset = "GNU" -EmitDynamicCastCheck = false -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false -EnableRealtimeLeakCheck = false -EnableSideStack = false -COptimizationLevel = "O2" -ConfigSelections = {mintest2 = {Enabled = false}} - -[Configs.Paranoid.WinFart] -Toolset = "GNU" -EmitDebugInfo = "No" -EmitDynamicCastCheck = false -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false -EnableRealtimeLeakCheck = false -EnableSideStack = false -AllowHotSwapping = false -AllocStackTraceDepth = 0 -COptimizationLevel = "O2" - -[Configs.Paranoid.Linux64] -Toolset = "GNU" -EnableRealtimeLeakCheck = false -EnableSideStack = false -COptimizationLevel = "O2" - -[Configs.Paranoid.macOS] -Toolset = "GNU" -EnableRealtimeLeakCheck = false -EnableSideStack = false -COptimizationLevel = "O2" - -[Configs.Paranoid.iOS] -Toolset = "GNU" -EnableRealtimeLeakCheck = false -EnableSideStack = false -IntermediateType = "Bitcode" COptimizationLevel = "O2" [Configs.Paranoid.aarch64-none-linux-android21] -Toolset = "GNU" -EnableRealtimeLeakCheck = false -EnableSideStack = false COptimizationLevel = "O2" diff --git a/IDE/mintest/LibA/BeefProj.toml b/IDE/mintest/LibA/BeefProj.toml index ace3d87a..85db6bab 100644 --- a/IDE/mintest/LibA/BeefProj.toml +++ b/IDE/mintest/LibA/BeefProj.toml @@ -3,7 +3,6 @@ Dependencies = {minlib = "*"} [Project] Name = "LibA" -TargetType = "BeefLib" DefaultNamespace = "" [Configs.Debug.Win32] diff --git a/IDE/mintest/src/main.bf b/IDE/mintest/src/main.bf index 9336c4c3..f5522a51 100644 --- a/IDE/mintest/src/main.bf +++ b/IDE/mintest/src/main.bf @@ -237,8 +237,12 @@ namespace Hey.Dude.Bro public static int Main(String[] args) { - for (int i < 10) - Blurg.Hey(); + Blurg.Hey(); + while (true) + { + new String(); + GC.Collect(); + } return 1; } diff --git a/IDE/mintest/src/main2.bf b/IDE/mintest/src/main2.bf index c86bc3cf..417caab0 100644 --- a/IDE/mintest/src/main2.bf +++ b/IDE/mintest/src/main2.bf @@ -1,42 +1,2 @@ using System; -using System; - - - -class Program -{ - private function bool on_send_recv_delegate(uint8* data, ref int length); - - struct plugin_header - { - public on_send_recv_delegate on_recv; - public on_send_recv_delegate on_send; - } - - private static bool on_recv(uint8* data, ref int length) - { - //Console.WriteLine(scope String().AppendF("RECV\tID: {}", data[0])); - return true; - } - - private static bool on_send(uint8* data, ref int length) - { - //Console.WriteLine(scope String().AppendF("SEND\tID: {}", data[0])); - return true; - } - - - [CLink] - [Export] - public static void Install(void* ptr) - { - plugin_header* plugin = (plugin_header*) ptr; - - plugin.on_recv = => on_recv; - plugin.on_send = => on_send; - - //Console.WriteLine("INSTALLED!!!"); - } -} - diff --git a/IDE/mintest/src/main3.bf b/IDE/mintest/src/main3.bf index 1e919a6b..ed34b8a8 100644 --- a/IDE/mintest/src/main3.bf +++ b/IDE/mintest/src/main3.bf @@ -5,66 +5,18 @@ using System.Diagnostics; using System.Threading; using System.Collections; -struct Zoops -{ - public int mA = 123; - public int mB = 234; - - public static implicit operator Zoops(float f) - { - Zoops val = default; - val.mA = (.)f; - val.mB = 200; - return val; - } - - public static implicit operator Zoops(float[2] f) - { - Zoops val = default; - val.mA = (.)f[0]; - val.mB = (.)f[1]; - return val; - } -} struct Blurg { - public void Foo() - { - - } - - public void Zarf() - { - T Yorp(T2 val) - { - return default; - } - } - - [CallingConvention(.Cdecl)] + public static void Hey() { - + String str = new String(); + delete str; + + //Internal.Malloc(123); + Internal.StdMalloc(123); } } - -struct StructA -{ - public int mA = 99; -} - - - -/*namespace System -{ - extension String - { - public String SubText(String input, int position, int length) - { - return 0; - } - } -}*/ \ No newline at end of file