comdak's User Avatar

@comdak

in /hacking 8 hours ago

Windows? Linux? Browser? Same Executable

Windows? Linux? Browser? Same Executable | Hackaday - Featured Image

Windows? Linux? Browser? Same Executable | Hackaday

hackaday.com - faviconhackaday.com
TLDR

This Hackaday article discusses a project by [Kamila] that creates a single executable file, weighing only 13K, capable of running on Windows, Linux, or within a web browser. The executable, a simple snake game, uses a technique of compressing and stitching together different platform-specific code so that each platform only sees its intended section. While the article suggests this method may not be practical for general use, it provides a clear template for those needing a multi-platform executable. The article also briefly mentions the potential risks, such as the possibility of distributing malware using this method.

3Score: 3

0 Comments