View Single Post
Old 08-12-2012, 08:33 AM   #170
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
I just used the tcc executable that lrizzo had at his web site. I do not know how he built it.

I see by modifying your program to print argc that this build of tcc does not handle command-line parameters. When tested on my K5, it shows that argc has a large negative value that changes with each run, and argv[0] is a NULL pointer.

I had not noticed that behavior before, but I had noticed that the tcc "-run" parameter did not run C programs as a script, so it has more than one bug. I suppose we need to rebuild tcc from source to see if that fixes it.

It seems to work okay for things that do not need parameters. I do not recall what "splattered into bin" thing that twobob is talking about.

Last edited by geekmaster; 08-12-2012 at 01:51 PM.
geekmaster is offline   Reply With Quote