免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 871 | 回复: 0
打印 上一主题 下一主题

UnifiedKernel - os-independent applications [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-26 03:20 |只看该作者 |倒序浏览

Maybe some of you have tried the emulator
WINE
, which can run windows applications within linux box, as it has to translate every windows API on-the-fly, WINE suffers great performance issue just from its beginning! So people are working on new possible solutions to run windows applications under linux with more efficient performance, and there are really successful ones!

Here I am very exicted to introduce UnifiedKernel (
http://www.unifiedkernel.com/
, or
http://www.longene.org/
) to you!
UnifiedKernel is a Chinese open source project, lead by 毛德操, one author of the well-known kernel book 《linux内核源代码情景分析》. UnifiedKernel introduces native support of windows PE format to linux kernel, it implements in the kernel almost all SYSTEM-CALLs of microsoft windows, and allows windows applications running under linux with almost their native performance! No API-Translation is needed any more! Windows executables (*.exe) can now launch directly from linux shell just like other linux utilities! Surely exciting enough! Windows users now find there applications can not only seamlessly but also with high performance, running under linux! The new age of OS-Independent application begins!

Windows application à DLLs à Linux kernel(with UnifiedKernel patched)

The functionality of UnifiedKernel are achieved by the following aspects:
* Patches to linux kernel, such as task_struct, etc.
* A loadable kernel module : unifiedkernel.ko, with memory management, thread/process management, etc.
* DLL equivalent of windows, from WINE, such as ntdll.dll, etc.


I write a sample code to test UnifiedKernel, first running on windows:


And then play the same executable on linux:


We can see there is an native linux process, called hell.exe, running, with pid 4023, instead of WINE process:


And here comes the big axe:
After I copy the whole directory of SourceInsight from its windows installation to linux filesystem, add some registry entries, I successfully launch the famous code editor into outer-space! No WINE, No Kidding, Here are the snapshots:




UnifiedKernel gives us a more efficient way than WINE to run windows applications under linux, but I don’t know how efficient it really is. UnifiedKernel is currently under heavy development, and calls for any voluntary contributors, maybe you can be one of them! UnifiedKernel currently not support SMP, and has many things left there to be done, but those would not dim its light, maybe some days later, in the near future I think, UnifiedKernel will be the proud of open source community, and also the proud of China!
See also
http://en.wikipedia.org/wiki/Linux_Unified_Kernel



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8754/showart_1944780.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP