English 中文(简体)
如何探测出便携式编码?
原标题:How can ported code be detected?
  • 时间:2010-04-10 02:13:31
  •  标签:
  • porting

如果你从一种语言到另一种语言,那么如何发现这一点?

你们从++到 Java,是怎么说的?

Java设计和执行的方案与 Java之间几乎相同的方案有何区别?

最佳回答

如果港口工作妥善进行(由专家以两种语文进行,并愿意将源语言的分部分转化为目标语言中最相似的分部分),那么你就无法说,已经进行过任何港口活动。

如果港口工作不称职,你有时会承认流放的异构体......但是,这很难与撰写新节目的人区分开来,他们知道哪怕只是用他们知道的语言转播该子。

问题回答

视对藏匿港的意图作出多大努力,可能很容易发现。

我将利用模式承认这项任务。 考虑“名称”,其中将说明编码的同义。 在每个法典中摘取这些特点,并加以比较。

e.g: One feature could be similar symbol names. Extract all symbols using ctags or regular expressions, make all lower-case, make uniq sort of both lists and compare them. Another possible feature: List of class + number of members e.g:

MyClass1 10
...

方法清单+控制区序列。 e.g:

doSth() if, while, if, ix, case
...

另一种容易的方式是将守则描绘成一种情况,例如将守则作为文字载在《语言》中,并将体大小确定为1。 人类在比较情况方面非常好。 欲了解其他的密码图像,请查询:http://www.se-radio.net/2009/03/episode-130-code-technologyization-with-michele-lanza/





相关问题
Better way to port Java into Python?

After several hours of working on porting this program over, it appears to finally be in a working state. However, I was wondering if anyone knew of a better way or more complete way of porting Java ...

Missing "ADODB" assembly with Mono?

I m trying to port some ASP.Net code to mono. I am testing it using xsp2. I compile it with Visual Studio also before running it with xsp2. Whenever I go to a practically blank page in my application ...

What does it take to port a classic game to a new platform?

I m thinking about starting a crazy enough hobby project that would span across several years and would include disassembling & OpenGL programming. Having almost finished my 3rd Android app, I ...

Porting linux socket application to windows usins MsDev

Is there openly available headers which can be used to compile linux socket application (using socket/udp/ip headers). they should define structures like sa_family_t,in_port_t Mandatory is to use ...

How can I get this snippet to work?

I d like to port a little piece of code from Ruby to Groovy, and I m stuck at this: def given(array,closure) { closure.delegate = array closure() } given([1,2,3,4]) { findAll { it > 4} ...

热门标签