Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing compilation issue for dhrystone benchmark #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions benchmarks/dhrystone/dhrystone.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extern int Int_Glob;
extern char Ch_1_Glob;


Proc_6 (Enum_Val_Par, Enum_Ref_Par)
void Proc_6 (Enum_Val_Par, Enum_Ref_Par)
/*********************************/
/* executed once */
/* Enum_Val_Par == Ident_3, Enum_Ref_Par becomes Ident_2 */
Expand Down Expand Up @@ -51,7 +51,7 @@ Enumeration *Enum_Ref_Par;
} /* Proc_6 */


Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
void Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
/**********************************************/
/* executed three times */
/* first call: Int_1_Par_Val == 2, Int_2_Par_Val == 3, */
Expand All @@ -71,7 +71,7 @@ One_Fifty *Int_Par_Ref;
} /* Proc_7 */


Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
void Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
/*********************************************************************/
/* executed once */
/* Int_Par_Val_1 == 3 */
Expand Down
14 changes: 14 additions & 0 deletions benchmarks/dhrystone/dhrystone.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
***************************************************************************
*/


/* Compiler and system dependent definitions: */

/* variables for time measurement: */
Expand Down Expand Up @@ -475,3 +476,16 @@ typedef struct record
} Rec_Type, *Rec_Pointer;

#endif


/* Defining the function definations */
void Proc_1(Rec_Pointer Ptr_Val_Par);
void Proc_2(One_Fifty *Int_Par_Ref);
void Proc_3(Rec_Pointer *Ptr_Ref_Par);
void Proc_4(void);
void Proc_5(void);
void Proc_6(Enumeration Enum_Val_Par, Enumeration *Enum_Ref_Par);
void Proc_7(One_Fifty Int_1_Par_Val, One_Fifty Int_2_Par_Val, One_Fifty *Int_Par_Ref);
void Proc_8(Arr_1_Dim Arr_1_Par_Ref, Arr_2_Dim Arr_2_Par_Ref, int Int_1_Par_Val, int Int_2_Par_Val);
Boolean Func_2(Str_30 Str_1_Par_Ref, Str_30 Str_2_Par_Ref);
Boolean Func_3(Enumeration Enum_Par_Val);
10 changes: 5 additions & 5 deletions benchmarks/dhrystone/dhrystone_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ int main (int argc, char** argv)
}


Proc_1 (Ptr_Val_Par)
void Proc_1 (Ptr_Val_Par)
/******************/

REG Rec_Pointer Ptr_Val_Par;
Expand Down Expand Up @@ -273,7 +273,7 @@ REG Rec_Pointer Ptr_Val_Par;
} /* Proc_1 */


Proc_2 (Int_Par_Ref)
void Proc_2 (Int_Par_Ref)
/******************/
/* executed once */
/* *Int_Par_Ref == 1, becomes 4 */
Expand All @@ -296,7 +296,7 @@ One_Fifty *Int_Par_Ref;
} /* Proc_2 */


Proc_3 (Ptr_Ref_Par)
void Proc_3 (Ptr_Ref_Par)
/******************/
/* executed once */
/* Ptr_Ref_Par becomes Ptr_Glob */
Expand All @@ -311,7 +311,7 @@ Rec_Pointer *Ptr_Ref_Par;
} /* Proc_3 */


Proc_4 () /* without parameters */
void Proc_4 () /* without parameters */
/*******/
/* executed once */
{
Expand All @@ -323,7 +323,7 @@ Proc_4 () /* without parameters */
} /* Proc_4 */


Proc_5 () /* without parameters */
void Proc_5 () /* without parameters */
/*******/
/* executed once */
{
Expand Down