View Single Post
Old 05-23-2012, 12:17 PM   #118
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Here is the output from compiling demo.c (included in my tcc package).
Code:
[root@kindle tcc]# tccmake demo -vvv -run
tcc version 0.9.25
-> /usr/lib/crt1.o
-> /usr/lib/crti.o
-> demo.c
-> /mnt/us/tcc/include/stdio.h
->  /mnt/us/tcc/include/features.h
->   /mnt/us/tcc/include/bits/predefs.h
->   /mnt/us/tcc/include/sys/cdefs.h
->    /mnt/us/tcc/include/bits/wordsize.h
->   /mnt/us/tcc/include/gnu/stubs.h
->  /mnt/us/tcc/include/stddef.h
->  /mnt/us/tcc/include/bits/types.h
->   /mnt/us/tcc/include/bits/wordsize.h
->   /mnt/us/tcc/include/bits/typesizes.h
->  /mnt/us/tcc/include/libio.h
->   /mnt/us/tcc/include/_G_config.h
->    /mnt/us/tcc/include/wchar.h
->     /mnt/us/tcc/include/bits/wchar.h
->    /mnt/us/tcc/include/gconv.h
->     /mnt/us/tcc/include/wchar.h
->   /mnt/us/tcc/include/stdarg.h
->  /mnt/us/tcc/include/bits/stdio_lim.h
->  /mnt/us/tcc/include/bits/sys_errlist.h
-> /mnt/us/tcc/include/stdlib.h
->  /mnt/us/tcc/include/sys/types.h
->   /mnt/us/tcc/include/time.h
->   /mnt/us/tcc/include/endian.h
->    /mnt/us/tcc/include/bits/endian.h
->   /mnt/us/tcc/include/sys/select.h
->    /mnt/us/tcc/include/bits/select.h
->    /mnt/us/tcc/include/bits/sigset.h
->    /mnt/us/tcc/include/time.h
->    /mnt/us/tcc/include/bits/time.h
->   /mnt/us/tcc/include/sys/sysmacros.h
->   /mnt/us/tcc/include/bits/pthreadtypes.h
->  /mnt/us/tcc/include/alloca.h
-> /mnt/us/tcc/include/string.h
-> /mnt/us/tcc/include/unistd.h
->  /mnt/us/tcc/include/bits/posix_opt.h
->  /mnt/us/tcc/include/bits/confname.h
->  /mnt/us/tcc/include/getopt.h
-> /mnt/us/tcc/include/fcntl.h
->  /mnt/us/tcc/include/bits/fcntl.h
-> /mnt/us/tcc/include/time.h
->  /mnt/us/tcc/include/bits/time.h
-> /mnt/us/tcc/include/sys/mman.h
->  /mnt/us/tcc/include/bits/mman.h
-> /mnt/us/tcc/include/sys/ioctl.h
->  /mnt/us/tcc/include/bits/ioctls.h
->   /mnt/us/tcc/include/asm/ioctls.h
->    /mnt/us/tcc/include/asm/ioctl.h
->     /mnt/us/tcc/include/asm-generic/ioctl.h
->  /mnt/us/tcc/include/bits/ioctl-types.h
->  /mnt/us/tcc/include/sys/ttydefaults.h
-> /mnt/us/tcc/include/linux/fb.h
->  /mnt/us/tcc/include/linux/types.h
->   /mnt/us/tcc/include/asm/types.h
->   /mnt/us/tcc/include/linux/posix_types.h
->    /mnt/us/tcc/include/linux/stddef.h
->     /mnt/us/tcc/include/linux/compiler.h
->    /mnt/us/tcc/include/asm/posix_types.h
->  /mnt/us/tcc/include/linux/i2c.h
nf /usr/local/lib/libc.so
-> /usr/lib/libc.so
-> /lib/libc.so.6
nf /usr/local/lib/ld-linux.so.3
nf /usr/lib/ld-linux.so.3
-> /lib/ld-linux.so.3
-> /lib/libgcc_s.so.1
-> /usr/lib/crtn.o
<- demo
[root@kindle tcc]#
It does compile successfully, but it exits WITHOUT running the compiled program. You have to follow that command with "./demo" to run the compiled program. I noticed before that this lrizzo build of tcc does not seem to support the "-run" option when I tried it, despite posts to the contrary in other threads.

Last edited by geekmaster; 05-23-2012 at 12:22 PM.
geekmaster is offline   Reply With Quote