Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. unsigned char foo()
  4. {
  5. int x = 1000;
  6. return x;
  7. }
  8.  
  9. int main(int argc, char *argv[])
  10. {
  11. printf("foo returns %dn", foo());
  12. }
  13.  
  14. gcc -c -g -o ../tgt/Linux/main.c.o -Wall -fpic main.c
  15. gcc ../tgt/Linux/main.c.o -g -o ../tgt/Linux/t -Wall
  16.  
  17. $ t
  18. foo returns 232
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement