您可以将使用CodeWarrior for Palm OS编译的68K代码与使用PRC-Tools(GCC)编译的代码链接吗?

时间:2022-03-29 03:00:42

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?

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

2 个解决方案

#1


4  

(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)

(扩展Ben的原始答案......不确定那个确切的礼节但是我还不能编辑所以我会重新发帖)

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.

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

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.

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

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

有关共享库的更多信息,请参阅Palm Pilot上的共享库。

#2


2  

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.

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

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.

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

#1


4  

(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)

(扩展Ben的原始答案......不确定那个确切的礼节但是我还不能编辑所以我会重新发帖)

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.

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

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.

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

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

有关共享库的更多信息,请参阅Palm Pilot上的共享库。

#2


2  

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.

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

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.

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