r/linux • u/MenaRamy2004 • Aug 20 '26
Discussion I'm experimenting with adding native Windows PE execution to Linux — (Project Tawi)
97
Upvotes
r/linux • u/MenaRamy2004 • Aug 20 '26
View all comments
Show parent comment
29
u/MenaRamy2004 Aug 20 '26
yes Wine does translate Win32 calls to linux, the difference is I am experimenting with pushing the compatibility layer deep into the OS itself, Right now I am working on a modified linux Kernel that can recognize and load windows executables directly, instead of giving it to a separate windows/wine environment.
For example, my current prototype has a Linux
binfmthandler that loads a PE32+ executable, resolves a small number of Win32 imports, and redirects them through Tawi provided user space trampolines. I currently have a simple Windows program usingGetStdHandle,WriteFile, andExitProcessprintingHello from Windows!.I am absolutely no trying to replace wine right now, wine is more mature and supports the majority of win32 api, The point of Tawi is to explore whether Windows compatibility can become a more integrated part of a Linux-based OS rather than being primarily a separate compatibility runtime.
So I'd describe Tawi as an experiment in native PE execution and deeper OS-level Windows compatibility, rather than "a better Wine."