您能否将使用 CodeWarrior for Palm OS 编译的 68K 代码与使用 PRC-Tools (GCC) 编译的代码链接起来?

发布于 2024-07-04 08:05:43 字数 120 浏览 7 评论 0原文

我有一个 Palm OS/Garnet 68K 应用程序,它使用使用 CodeWarrior 构建的第三方静态库。 我可以使用 PRC-Tools(Palm OS 平台的 GCC 端口)重建应用程序,并仍然与第三方库链接吗?

I've got a Palm OS/Garnet 68K application that uses a third-party static library built with CodeWarrior. Can I rebuilt the application using PRC-Tools, the port of GCC for the Palm OS platform and still link with the third-party library?

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

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

发布评论

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

评论(2

懒猫 2024-07-11 08:05:43

(扩展 Ben 的原始答案...不确定具体的礼仪,但我还无法编辑,所以我会重新发布)

不,CodeWarrior 使用与 PRC 不同的目标文件格式-工具。 此外,编译器支持库不同,因此即使代码可以静态链接在一起,它也可能以不同的方式使用符号。

但是,如果您可以使用 CodeWarrior 将第三方静态库包装到 Palm OS 共享库中,那么您应该能够从 PRC-Tools 应用程序中调用它。 Palm OS 共享库接口可跨工具工作,但共享库的系统支持有限,因此您需要确保原始代码不使用全局变量才能使其工作。

有关共享库的详细信息,请参阅 Palm Pilot 上的共享库

(Expanding on Ben's original answer... not sure of the exact etiquette for that but I can't edit yet so I'll re-post)

No, CodeWarrior uses a different object file format than PRC-Tools. Also, the compiler support libraries are different, so even if the code could be statically linked together, it may use symbols in a different way.

However, if you can wrap the third-party static library into a Palm OS shared library using CodeWarrior, then you should be able to call it from PRC-Tools applications. The Palm OS shared library interface works across tools, but shared libraries have limited system support so you'll need to be sure the original code doesn't use global variables for this to work.

For more information on shared libraries, see Shared libraries on the Palm Pilot.

霞映澄塘 2024-07-11 08:05:43

不,CodeWarrior 使用与 PRC-Tools 不同的目标文件格式。 此外,编译器支持库不同,因此即使代码可以链接在一起,它也可能以不同的方式使用符号。

但是,如果您可以使用 CodeWarrior 将第三方库包装到共享库中,那么您应该能够从 PRC-Tools 应用程序中调用它。 共享库接口可跨工具工作,但共享库的系统支持有限,因此您需要确保原始代码不使用全局变量才能使其工作。

No, CodeWarrior uses a different object file format than PRC-Tools. Also, the compiler support libraries are different, so even if the code could be linked together, it may use symbols in a different way.

However, if you can wrap the third-party library into a shared library using CodeWarrior, then you should be able to call it from PRC-Tools applications. The shared library interface works across tools, but shared libraries have limited system support, so you'll need to be sure the original code doesn't use global variables for this to work.

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