Fabrice,
Good news! The C67 port seems to compile, run, and generate correct C67
code.
Below is a diff of the directory I was testing in.
The changes to tcccoff.c I belive are all straighforward bugs and should be
incorporated.
The rest are make/header/compiler issues which you may have a better way to
address. There are a couple of linux headers that don't seem to be required
by tcc but give problems for MinGW (or MS VC++). Similarly there are
references to "long long". Also a few minor compiler issues.
I couldn't find a good way to debug the MinGW generated exe. Is there one?
The only thing I could find is a command line gdb. So I resorted back to MS
VC++ to compile and debug. It seemed too easy. I just made an empty
project, inserted tcc.c and it compiled an ran!
Here is the process I went through on my Windows Machine (possibly useful to
someone as ignorant of Linux as me):
1 - Install Cygwin (including development tools)
2 - Install MinGW
3 - from Cygwin prompt checkout tcc with:
cvs -z3 -d:ext:address@hidden:/cvsroot/tinycc co tinycc
4 - I resorted to editing the configure script to force mingw32="yes"
5 - from Cygwin prompt: configure
6 - from windows cmd prompt: cd to where CVS put the files (cd
C:\cygwin\home\TK\tinycc)
6 - from windows cmd prompt: put Mingw\bin in your path=$path$;c:\mingw\bin
7 - from windows cmd prompt: mingw32-make.exe C67-tcc.exe
8 - from windows cmd prompt: C67-tcc.exe -g -nostdlib test.c -o test.out
Let me know your thoughts.
Thanks
TK