Show HN: Tiny 1k Rust binary on Windows
github.com
Show HN: Tiny 1k Rust binary on Windows
1–10 of 66 posts
Re: Show HN: Tiny 1k Rust binary on Windows
#2Re: Show HN: Tiny 1k Rust binary on Windows
#3These literally just contain the compiled assembly and are usually used on, for example, the 4k demoscene.
1k with rust is certainly a nice squeeze.
Re: Show HN: Tiny 1k Rust binary on Windows
#4On Windows the smallest exe can be achieved by writing in assembly and compiling as .com executable. These literally just contain the compiled assembly and are usually used on, for example, the 4k demoscene. 1k with rust is certainly a nice squeeze.
Re: Show HN: Tiny 1k Rust binary on Windows
#5Can you test it and see how it behaves with msvc toolchain?
Re: Show HN: Tiny 1k Rust binary on Windows
#6I have found this https://github.com/HugoPlatzer/tiny-rust-binaries . Can you test it and see how it behaves with msvc toolchain?
Re: Show HN: Tiny 1k Rust binary on Windows
#7On Windows the smallest exe can be achieved by writing in assembly and compiling as .com executable. These literally just contain the compiled assembly and are usually used on, for example, the 4k demoscene. 1k with rust is certainly a nice squeeze.
That's a DOS executable though, and won't run on 64-bit Windows.
Re: Show HN: Tiny 1k Rust binary on Windows
#8On Windows the smallest exe can be achieved by writing in assembly and compiling as .com executable. These literally just contain the compiled assembly and are usually used on, for example, the 4k demoscene. 1k with rust is certainly a nice squeeze.
That's a DOS executable though, and won't run on 64-bit Windows.
Re: Show HN: Tiny 1k Rust binary on Windows
#9Earlier quoted context omitted.
That's a DOS executable though, and won't run on 64-bit Windows.
Regular com programs won't run, but I'm waiting for the day the vulnerability is discovered that let's you run a specially crafted binary because of left over code from the old com launcher. Is the com extension still recognized in 64-bit windows?
Re: Show HN: Tiny 1k Rust binary on Windows
#10Earlier quoted context omitted.
That's a DOS executable though, and won't run on 64-bit Windows.
Regular com programs won't run, but I'm waiting for the day the vulnerability is discovered that let's you run a specially crafted binary because of left over code from the old com launcher. Is the com extension still recognized in 64-bit windows?
And yes, the com extension is still recognized and will pop up a dialog telling you "This app can't run on your PC".
But actually .com and .exe files are handled equivalently, so you can just rename an .exe (i.e. PE executable) to .com and it will run - that doesn't make it a COM executable though...