Listing 4. Test program for availability of STRCMP .
清单4 . strcmp可用性测试程序。
This was done by simple substitution of the arguments passed to STRCMP into a line of assembly code.
这个过程只是将传递到strcmp的参数替换到一行汇编代码中。
In fact, you could indeed use STRCMP on that system, but the test program incorrectly thought it was missing.
实际上您可以使用系统中的strcmp,但是测试程序错误地认为缺少这个函数。
Unfortunately, the sample program called STRCMP with no arguments, so the resulting assembly code was invalid and the compile failed.
不幸的是,前面的例子程序调用strcmp时没有给出参数,因此生成的汇编代码无效,从而导致编译失败。
On one version of the UnixWare compiler, references to STRCMP were translated automatically into an Intel processor's native string compare instruction.
在UnixWare编译器的某一个版本中,对strcmp的引用被自动转换为Intel处理器自己的字符串比较指令。
One is when the test program isn't correctly designed and may fail to compile on some systems. As an example, consider the following proposed test program for the availability of the STRCMP function.
一种情况是测试程序设计不正确而可能在一些系统中编译失败。
One is when the test program isn't correctly designed and may fail to compile on some systems. As an example, consider the following proposed test program for the availability of the STRCMP function.
一种情况是测试程序设计不正确而可能在一些系统中编译失败。
应用推荐