Windows 8 Metro 应用程序是否需要对代码进行任何更改才能在基于 ARM 的设备上运行?

发布于 2024-12-25 12:42:24 字数 255 浏览 0 评论 0原文

据我了解,运行时的 Metro 部分不依赖于 x86 处理器架构和本机代码,并且无需对 x86 平板电脑或 ARM 平板电脑上的代码进行任何更改即可工作。这是正确的吗?

另外,将应用程序从 Windows Phone Metro 移植到 Windows 8 Metro 有多容易?我们是否可以希望完全不更改代码?

同样,XBOX 又如何呢? Windows 8/Windows Phone Metro 应用程序是否有可能轻松移植到新的 XBOX Metro 环境?

As far as I understand the Metro part of the runtime is not x86 processor architecture and native code dependant and will work without any change to the code on say an x86 tablet or ARM tablet. Is this correct?

Also how easy would it be to port apps from Windows Phone metro to Windows 8 metro? Can we hope that no change to code at all is a possibility?

Similarly, what about XBOX? Is there any chance Windows 8/Windows Phone metro apps can be easily ported to the new XBOX metro environment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

極樂鬼 2025-01-01 12:42:24

Windows 8 有 有点人格分裂,其架构如下所示:

在此处输入图像描述

左侧是较新的Metro 风格/WinRT 架构,而右侧是较旧的 Win32/.NET 架构。它已被广泛报道 ARM 平板电脑将仅支持 Metro/WinRT 架构。没有迹象表明 ARM 设备将需要不同的代码,而且这似乎不太可能,因为它们将具有相同的架构。

此外,将应用程序从 Windows Phone Metro 移植到
Windows 8 地铁?我们是否可以希望完全不改变代码
可能性?

将 WP7 应用程序移植到 Win8 会稍微容易一些,因为它们的架构相似,即类似的应用程序生命周期和类似的受限 API 集。但是,肯定需要更改代码,请参阅这篇文章,其中介绍了 简单的跨平台 Win8-WinRT / Silverlight 应用程序。 XAML UI 元素位于不同的命名空间中,这会对您的所有 UI 代码产生影响,XAML 命名空间映射语法不同,因此无法共享 XAML。确实有点乱。

有传言称 WP8 将使用相同的 WinRT 架构,这将使代码共享成为可能。不过,我认为这种可能性很小,微软已经从 WP6.5 到 WP7 引入了重大的架构变化,再次这样做会疏远开发人员。

Windows 8 has something of a split personality, with the architecture shown below:

enter image description here

The left hand side is the newer metro-style / WinRT architecture, whilst the right-hand side is the older Win32 / .NET architecture. It has been widely reported that ARM tablets will only support the Metro / WinRT architecture. There has been no indication that ARM devices will require different code, and this seems quite unlikely based on the fact that it will have the same architecture.

Also how easy would it be to port apps from Windows Phone metro to
Windows 8 metro? Can we hope that no change to code at all is a
possibility?

It is slightly easier to port WP7 apps to Win8 due to the similarities in their architecture, i.e. a similar application lifecycle and a similar restricted set of APIs. However, there certainly are code changes required, see this article which presents a simple cross-platform Win8-WinRT / Silverlight application. The XAML UI elements are in different namespaces, which has an impact on all of your UI code, the XAML namespace mapping syntax is different, so you cannot share XAML. It is a bit of a mess really.

There are rumours that WP8 will use the same WinRT architecture, which would make code sharing possible. However, I think this is highly unlikely, Microsoft already introduced significant architectural changes from WP6.5 to WP7, doing it again would alienate developers.

朕就是辣么酷 2025-01-01 12:42:24

由于其底层处理器架构的原因,ARM 将无法承载“Windows 7”模式,而只能拥有 Metro 模式。因此,如果您有 Windows 应用程序,它实际上不会运行。它需要重新编译/重新创建为 Metro 风格应用程序并发布到市场。

ARM will not be able to host the "Windows 7" mode because of its underlying processor architecture and would just have Metro mode. So, if you have windows app, it effectively wont run. It needs to be re-compiled/re-created as a metro style app and published to marketplace.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文