在unix中编译dhrystone时出错

在unix中编译dhrystone时出错,第1张

概述在unix中编译dhrystone时出错

我是使用基准和makefile的新手。 我已经从下面的链接下载Dhrystone基准,我正在编译它,但我面临奇怪的错误。 我试图解决它,但我没有成功。 有人可以帮助我运行dhrystone基准吗? 下面是我试图编译的两种不同的方式。 但是都给出了相同的错误结果:(

链接: http : //fossIEs.org/unix/privat/old/dhrystone-2.1.tar.gz/

编译命令试过了 :

gcc -g dhry.h dhry_1.c dhry_2.c -o dhrystonex make all

错误:

Nginx + PHP-fpm假设比Apache + mod-PHP快得多

为什么相同的C程序有时快得多

WPF – 在SYstem帐户下执行进程时性能较低

为什么queryPerformanceFrequency是由1024除以TSC频率,为什么不只是TSC?

Win7 x64上DrawText性能不佳

gcc -O -DTIMES -DHZ=60 dhry_1.c dhry_2.c -o gcc_dry2 dhry_1.c:31:18: warning: conflicting types for built-in function 'malloc' [enabled by default] dhry_1.c:48:17: error: conflicting types for 'times' /usr/include/i386-linux-gnu/sys/times.h:49:16: note: prevIoUs declaration of 'times' was here dhry_1.c: In function 'main': dhry_1.c:98:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default] dhry_1.c:124:11: warning: ignoring return value of 'scanf',declared with attribute warn_unused_result [-Wunused-result] make: *** [gcc_dry2] Error 1

C#:什么是最快的方式来生成一个唯一的文件名?

.net file.copy复制许多小文件时(非networking)很慢,

在窗口中获取进程的峰值私有字节值

快速的方法来复制(移动)batch file中的文件

Nginx返回一个假的200状态码的空Json对象

进行以下更改。 带有“ - ”的行表示要删除的行。 在之前加一个+表示你应该添加一行。 总的来说,你会替换两行(通过在// )并添加一行(一个#include ):

diff -bup orig/dhry_1.c new/dhry_1.c --- orig/dhry_1.c 2012-03-30 11:30:41.984107303 -0700 +++ new/dhry_1.c 2012-03-30 11:31:29.256002567 -0700 @@ -28,7 +28,7 @@ char Ch_1_Glob,int Arr_1_Glob [50]; int Arr_2_Glob [50] [50]; -extern char *malloc (); +// extern char *malloc (); Enumeration Func_1 (); /* forward declaration necessary since Enumeration may not simply be int */ @@ -45,7 +45,7 @@ Enumeration Func_1 (); #ifdef TIMES struct tms time_info; -extern int times (); +// extern int times (); /* see library function "times" */ #define Too_Small_Time (2*HZ) /* Measurements should last at least about 2 seconds */ diff -bup orig/dhry.h new/dhry.h --- orig/dhry.h 2012-03-30 11:30:41.984107303 -0700 +++ new/dhry.h 2012-03-30 11:31:29.256002567 -0700 @@ -392,6 +392,7 @@ /* General deFinitions: */ #include <stdio.h> +#include <string.h> /* for strcpy,strcmp */ #define Null 0

总结

以上是内存溢出为你收集整理的在unix中编译dhrystone时出错全部内容,希望文章能够帮你解决在unix中编译dhrystone时出错所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/langs/1267038.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存