Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
sheisc committed Dec 3, 2016
1 parent 1b7de63 commit 2be3b3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ucc/examples/link/1.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ REAL_T add(REAL_T a , REAL_T b){
}
extern int abc;
REAL_T fpVal = 20.0f;


/**
Undeclared fabs250()
Expand All @@ -29,6 +31,7 @@ REAL_T fpVal = 20.0f;
So after fabs250(...), %eax is still 0.
*/

int main(int argc,char *argv[]){
double fp = fpVal;
int * ptr = (int *) &fp;
Expand Down
3 changes: 3 additions & 0 deletions ucc/examples/link/2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//int abc = 200;
int abc;
int abc = 300;

REAL_T fabs250(REAL_T a){
#if 0
REAL_T value = (REAL_T)fabs(a);
Expand All @@ -13,3 +14,5 @@ REAL_T fabs250(REAL_T a){
return value;
#endif
}


0 comments on commit 2be3b3f

Please sign in to comment.