On Wednesday 29 August 2007 4:34:35 am Peter Lund wrote: > On Sat, 2007-08-18 at 01:40 -0500, Rob Landley wrote: > > So I started a list of differences between tcc and gcc. (Not just > > unfixed bugs but things that are likely to remain different.) > > > > http://landley.net/code/tinycc/differences.html > > Evaluating arguments in the order of last to first would allow more > broken programs to work. I'm thinking of programs that don't specify > proper prototypes for functions with a variable number of arguments.
*shrug* If you're going to use varags, use a prototype. Otherwise trying to make that work sounds too brittle for words. (Code that breaks obviously enough can be debugged.) > Other differences just off the top of my head: > > command-line parameters, I've got some in my wrapper script that I might add. In the short term, I might try using the wrapper script around tcc and see what happens. :) > dependency generation (spitting out the names > of the include files transitively included in a compilation unit, > possibly minus system headers), Patches welcome. :) > I think the handling of extra include > file directories was rather different last I looked, In what way? > some differences in > the handling of typedefs and structs especially in the face of forward > declarations and incomplete types. Details, please? (I'm aware there are problems here, but my notes are buried somewhere and highly unlikely to be complete anyway...) I believe I've hit programs breaking in this area... > -Peter Rob -- "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
