add: statically linking the interpreter/lib in Release on Windows

This commit is contained in:
2024-08-19 14:40:54 +02:00
parent b56a528877
commit 1c451dc828
3 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# pasm # pasm
PASM is a Scripting language that i made for fun with a few constraints : PASM is a Scripting language that i made for fun with a few constraints :
- the interpreter should be as small as possible and written without the CRT (currently ~22ko WITH CRT) - the interpreter should be as small as possible (currently ~139ko statically linked)
- the language should be able to call Windows API's - the language should be able to call Windows API's
- the language should be able to execute scripts from a buffer without needing a file - the language should be able to execute scripts from a buffer without needing a file
- the language should be able to send the output of a script using sockets or stdout - the language should be able to send the output of a script using sockets or stdout
@@ -17,7 +17,6 @@ PASM supports pointers and arrays.
The interpreter works for linux as well, but some API's are Windows only (for now). The interpreter works for linux as well, but some API's are Windows only (for now).
TODO : TODO :
- get rid of the CRT (so we can get a smaller PE)
- blank IAT - blank IAT
# Documentation # Documentation

View File

@@ -110,6 +110,7 @@
<ConformanceMode>true</ConformanceMode> <ConformanceMode>true</ConformanceMode>
<LanguageStandard_C>stdc17</LanguageStandard_C> <LanguageStandard_C>stdc17</LanguageStandard_C>
<Optimization>MinSpace</Optimization> <Optimization>MinSpace</Optimization>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Console</SubSystem>
@@ -143,6 +144,7 @@
<ConformanceMode>true</ConformanceMode> <ConformanceMode>true</ConformanceMode>
<LanguageStandard_C>stdc17</LanguageStandard_C> <LanguageStandard_C>stdc17</LanguageStandard_C>
<Optimization>MinSpace</Optimization> <Optimization>MinSpace</Optimization>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Console</SubSystem>

View File

@@ -110,6 +110,7 @@
<Optimization>MinSpace</Optimization> <Optimization>MinSpace</Optimization>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed> <FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<DebugInformationFormat>None</DebugInformationFormat> <DebugInformationFormat>None</DebugInformationFormat>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Console</SubSystem>
@@ -149,6 +150,7 @@
<Optimization>MinSpace</Optimization> <Optimization>MinSpace</Optimization>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed> <FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<DebugInformationFormat>None</DebugInformationFormat> <DebugInformationFormat>None</DebugInformationFormat>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Console</SubSystem>