On 12/03/17 18:35, Tony Robinson wrote:
> Hello,
> 
> Very sorry for newbie questions but I'm looking for C compiler for a 
> processor that I've been very slowly building as a hobby.   The instruction 
> set is super simple (Rz = Rx op Ry for op in ADD, SUB, AND, OR, XOR, ASR plus 
> basic LOAD/STORE/PUSH/POP instructions) and as the clock rate is only about 
> 50kHz I'm not too worried about optimization.   Portability is key - I will 
> port FORTH but would love C.
> 
> But all that is background, I'm wondering if;
> 
> a) tcc is the simplest C compiler for me to retarget and
> b) assuming that it is, I did the standard:
> 
> $ tar xvf tcc-0.9.26.tar.bz2

The 0.9.26 release was in Feb 2013 and a lot has changed since
then (I can't recall if x86-64 and/or multilib systems were
supported properly then).

You may have better luck using the mob branch from the git repo
directly (the 0.9.27 release _may_ happen soon-ish):

   $ git clone git://repo.or.cz/tinycc.git
   $ cd tinycc
   $ ./configure
   $ make
   $ make test
 
HTH

ATB,
Ramsay Jones


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to