NO

Author Topic: Compiling TinyCC with PellesC  (Read 4786 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Compiling TinyCC with PellesC
« on: August 31, 2007, 05:54:08 PM »
Sourcecode:
http://bellard.org/tcc/
http://repo.or.cz/w/tinycc.git

Forum problem:
http://lists.gnu.org/archive/html/tinycc-devel/2007-08/msg00035.html

1: Run build-tcc.bat in win32 folder for config.h
2: Copy tcc.ppj and tiny_libmaker.ppj to win32 folder
3: Compile tcc.ppj project
4: Compile tiny_libmaker.ppj project
5: Run build-tcc.bat again for libtcc1.a library

From commandline tcc.exe only:
Code: [Select]
cc /Ze /Go -D__GNUC__ tcc.c
In tccpp.c change this:
tccpp.c line 72:
Code: [Select]
static const unsigned char tok_two_chars[] =
    "<=\x9E>=\x9D!=\x95&&\xA0||\xA1++\xA4--\xA2==\x94<<\x01>>\x02+=\xAB"
    "-=\xAD*=\xAA/=\xAF%=\xA5&=\xA6^=\xDE|=\xFC->\xCB..\xA8##\xB6";

In tiny_libmaker change this:
Code: [Select]
if (!mktemp(tfile)to this:
Code: [Select]
if (!tmpnam(tfile)
2010-02-12 project files.
2010-04-06 project file for modular compilation.
« Last Edit: April 09, 2010, 08:21:55 AM by timovjl »
May the source be with you