Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7723975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:34:43+00:00 2026-06-01T04:34:43+00:00

I am new in using benchmarks and makefiles. I have downloaded Dhrystone benchmark from

  • 0

I am new in using benchmarks and makefiles. I have downloaded Dhrystone benchmark from the below link and I am trying to compile it, but I am facing weird errors. I tried to solve it,but I am unsuccessful. Can someone help me in running the dhrystone benchmark?
Below are the 2 different ways that I tried to compile. But both are giving the same error result 🙁

Link: http://fossies.org/unix/privat/old/dhrystone-2.1.tar.gz/

compile commands tried:

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

make all 

error:

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:34:44+00:00Added an answer on June 1, 2026 at 4:34 am

    Make the following changes. A line with a - before it indicates one you should remove. A line with a + before it indicates one you should add. In total, you will replace two lines (by preceding them with //) and add one new line (a #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 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I still very new using Subversion. Is it possible to have a working copy
I have written a few benchmarks using Caliper . How can I run multiple
It's a very common situation, but I'm kinda new using ORM especially in Android,
I am new to using .NET, but I am interested in using MonoTouch/Droid to
when using new Date,I get something like follows: Fri May 29 2009 22:39:02 GMT+0800
I'm new to using the NetBeans IDE. When I try to look at the
I'm new to using LINQ to Entities (or Entity Framework whatever they're calling it)
I am fairly new to using infragistics controls (started yesterday). While they are (very)
I am relatively new to using jQuery and would like to use the load
I'm new to using open source libraries in production code so when it says

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.