如何链接从不同编译器编译的两个c文件. [英] how to link two c files compiled from different compilers.

查看:70
本文介绍了如何链接从不同编译器编译的两个c文件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友..
谁能教我如何链接从不同编译器编译的两个c程序.我正在使用turboc和GCC.

hi friends..
can any one teach me how to link two c programs compiled from different compilers. i am using turboc and GCC.

推荐答案

我怀疑不是.
在我记忆中暗淡的某个地方,我可以听到一个声音,告诉我他们有不同的通话习惯.

如果您拥有两个模块的lib或dll文件,则最好使用相同的(gcc?)编译器反编译,修改然后重新编译.

出于好奇,请问意图/限制是什么?

IDAPro,OllyDbg和td.exe(Turbo调试器)都浮现在脑海.不要以为gcc部分是用djgpp编译的,对吗?那回想起15年前的回忆. :)


稍加嘲笑使我进入了 Boomerang [
我还遇到了一篇涉及反编译技术的论文,您可能会在
此处 [ ^ ](这是我发现有关Boomerang的地方)我们没有检查文件中描述的程序是否可供下载,但是希望Boomerang能够为您执行此操作.如果您是我,我会看一下帮助!我丢失了源代码 [ ^ ]部分.

干杯!
I suspect not.
Somewhere from a dark recess of my memory, I can hear a voice telling me that they''ve different calling conventions.

If you''ve the lib or dll files of both modules, you''d ideally decompile, modify and then recompile using the same (gcc?) compiler.

For curiosity''s sake, may I ask what the intention/limitations are?

IDAPro, OllyDbg and td.exe (Turbo Debugger) all come to mind. Don''t suppose the gcc portion was compiled with djgpp, was it? That brings back memories from 15 years ago. :)


A little more poking about has led me to the homepage for Boomerang[^], which touts itself as being "A general, open source, retargetable decompiler of machine code programs" perhaps this will help you in your quest.

I also came across a paper that goes into techniques for decompilation, you may find the paper here[^] (It''s where I found out about Boomerang) I haven''t checked to see if the program described in the paper is available for download or not, but hopefully Boomerang will be able to do this for you anyway. If I were you, I''d look at the Help! I''ve lost my source code[^] section.

Cheers!


这篇关于如何链接从不同编译器编译的两个c文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆