daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # /gcc/fact/st1
  2.  
  3. f="fact1"
  4.  
  5. #vi $f.h
  6. #vi lib$f.c
  7. #vi $f.c
  8.  
  9. rm -rf $f
  10.  
  11. #gcc -O3 $f.c -o $f
  12. #gcc -Wall -pipe -s -O3 $f.c -o $f
  13. gcc -Wall -O3 -c lib$f.c -o lib$f.o
  14. ar -r -s lib$f.a lib$f.o
  15. gcc -Wall -O3 $f.c -L/gcc/fact -l$f -o $f
  16.  
  17. rm -rf lib$f.o
  18. rm -rf lib$f.a
  19.  
  20. if [ ! -e $f ]; then
  21.   echo
  22.   echo compilation problem
  23.   echo
  24.   exit
  25. fi
  26.  
  27. ./$f
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top