[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Very sorry - newbie questions
From: |
Ramsay Jones |
Subject: |
Re: [Tinycc-devel] Very sorry - newbie questions |
Date: |
Mon, 13 Mar 2017 00:14:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
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