Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This was the compiler I was required to use for my courses in university. GCC was forbidden. The professor just really liked tcc for some reason.
 help



> The professor just really liked tcc for some reason.

Perhaps, or maybe they just got tired of students coming in and claiming that their program worked perfectly on such-and-such compiler.[1] It looks like tcc would run on most systems from the time of its introduction, and perhaps some that are a great deal older. When I took a few computer science courses, they were much more restrictive. All code had to be compiled with a particular compiler on their computers, and tested on their computers. They said it was to prevent cheating but, given how trivial it would have been to cheat with their setup, I suspect it had more to do with shutting down arguments with students who came in to argue over grades.

[1] I was a TA in the physical sciences for a few years. Some students would try to argue anything for a grade, and would persist if you let them.


The prof could have just said "Use GCC <version>" then, which would run on even more systems than TCC. Professor probably just really liked TCC.

Seems like a good way to get students to write C rather than GNU C.

TCC - just like many other C compilers - supports many GNU extensions.

The professor could have just insisted on `-std=c99` or a similar GCC flag which disallows GNU extensions.

When I taught programming (I started teaching 22 years ago), the course was still having students either use GCC with their university shell accounts, or if they were Windows people, they would use Borland C++ we could provide under some kind of fair use arrangement IIANM, and that worked within a command shell on Windows.


On the other hand, with tcc, you'd know exactly what you were dealing with.

I used it just the other day to do some tests. No dependencies, no fiddling around with libwhater-1.0.dll or stuff like that when on Windows and so on.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: