[LLVMdev] The Same Application For SuSE and MS Windows.

Chris Lattner sabre at nondot.org
Mon Nov 6 12:50:50 PST 2006


On Sun, 5 Nov 2006, big one wrote:
> Novell/MS plan to release SuSE-Windows combo based on VMWare/Xen/Virtualization.
> IMO using LLVA/LLVM virtual machine, in theory, it is possible to create a single version of application binaries that run on both OS at the same time.
> The same application can run on either Windows or Linux or both Windows + Linux without modification/re-compiling.
> Is this idea possible?

No, not in general.  llvm-gcc runs a C preprocessor, which strips out all 
code unrelated to the platform being targeted.

For special cases, yes this will work.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list