SHARE
TWEET

tcc -run demo

a guest Aug 13th, 2012 54 Never
  1. bash-4.2$ ls -la
  2. total 31
  3. drwxr-xr-x   2 root root    72 Aug 13 13:27 ./
  4. drwxr-xr-x 278 root root 27232 Aug 13 13:27 ../
  5. -rw-r--r--   1 root root   316 Aug 13 12:58 fork.c
  6.  
  7. bash-4.2$ tcc -run fork.c
  8. Hello fork()
  9. I'm the dad
  10. I'm the child process
  11.  
  12. bash-4.2$ ls -la
  13. total 31
  14. drwxr-xr-x   2 root root    72 Aug 13 13:27 ./
  15. drwxr-xr-x 278 root root 27232 Aug 13 13:27 ../
  16. -rw-r--r--   1 root root   316 Aug 13 12:58 fork.c
RAW Paste Data
Top