Skip to content

Commit

Permalink
add: statically linking the interpreter/lib in Release on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ALittlePatate committed Aug 19, 2024
1 parent b56a528 commit 1c451dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pasm
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 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
Expand All @@ -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).

TODO :
- get rid of the CRT (so we can get a smaller PE)
- blank IAT

# Documentation
Expand Down
2 changes: 2 additions & 0 deletions msvc/interpreter.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<ConformanceMode>true</ConformanceMode>
<LanguageStandard_C>stdc17</LanguageStandard_C>
<Optimization>MinSpace</Optimization>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down Expand Up @@ -143,6 +144,7 @@
<ConformanceMode>true</ConformanceMode>
<LanguageStandard_C>stdc17</LanguageStandard_C>
<Optimization>MinSpace</Optimization>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
2 changes: 2 additions & 0 deletions msvc/pasm.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<Optimization>MinSpace</Optimization>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<DebugInformationFormat>None</DebugInformationFormat>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down Expand Up @@ -149,6 +150,7 @@
<Optimization>MinSpace</Optimization>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<DebugInformationFormat>None</DebugInformationFormat>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down

0 comments on commit 1c451dc

Please sign in to comment.