Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.transputer > #243

Re: Adding C compiler support for transputer with TinyCC

X-Received by 2002:a37:588:: with SMTP id 130mr395335qkf.351.1582740850958; Wed, 26 Feb 2020 10:14:10 -0800 (PST)
X-Received by 2002:aca:5746:: with SMTP id l67mr241176oib.60.1582740850597; Wed, 26 Feb 2020 10:14:10 -0800 (PST)
Path csiph.com!xmission!news.alt.net!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.sys.transputer
Date Wed, 26 Feb 2020 10:14:10 -0800 (PST)
In-Reply-To <273acb89-d850-41f4-8fad-ee95ccf04017@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info google-groups.googlegroups.com; posting-host=195.26.49.42; posting-account=F5v5AQoAAACbUgYac-w7GZNdJSQlW1mB
NNTP-Posting-Host 195.26.49.42
References <273acb89-d850-41f4-8fad-ee95ccf04017@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <a10fb2ea-31ca-4c27-bbc2-446f6c52fa5f@googlegroups.com> (permalink)
Subject Re: Adding C compiler support for transputer with TinyCC
From agentdavo@gmail.com
Injection-Date Wed, 26 Feb 2020 18:14:10 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 28
Xref csiph.com comp.sys.transputer:243

Show key headers only | View raw


In TinyCC I found the tcc_compile function where i could implement a transputer arch specific initalizer (check cpu capabilities etc) and also research the interface beetween parser and code generator and began to understand the structures which tcc uses for the code generator.

I am using the c67-gen as an example for the implementation of all necessary functions (like context switching for building the prolog and epilog of a function and implementation of sequential and floating point instructions).

After some time i found a way to attach the transputer gen to tcc in the tcc_compile function and test with the emulator (Gavin Crate).

I also took a look into the gcc 2.7.3 implementation the initaliser.

I compared the t9000 architecture with all the other ones and have implemented the loading instructions directly through the primary functions for integer and fpu.

Since the transputer architecture is a stack based assembly syntax mov would be something like a combination dup, rev and ldl, but even then we don't
need a explicit mov operation since we always operate in a stack based way. There is a move instruction for the transputer, but it's only really for block movements.

More to come!

https://github.com/agentdavo/tinycc-transputer/commit/c425ec61b3b66619502d9cc7368db08a7b8d1401

Back to comp.sys.transputer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Adding C compiler support for transputer with TinyCC agentdavo@gmail.com - 2020-02-11 04:22 -0800
  Adding C compiler support for transputer with TinyCC Axel Muhr <axel@geekdot.com> - 2020-02-12 05:29 -0800
    Re: Adding C compiler support for transputer with TinyCC agentdavo@gmail.com - 2020-02-12 09:58 -0800
    Re: Adding C compiler support for transputer with TinyCC agentdavo@gmail.com - 2020-02-26 10:42 -0800
      Re: Adding C compiler support for transputer with TinyCC Axel Muhr <axel@geekdot.com> - 2020-02-28 13:30 -0800
        Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-02-29 14:17 -0800
          Re: Adding C compiler support for transputer with TinyCC Axel Muhr <axel@geekdot.com> - 2020-03-02 20:18 -0800
            Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-03-03 11:12 -0800
  Re: Adding C compiler support for transputer with TinyCC agentdavo@gmail.com - 2020-02-26 10:14 -0800
  Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-02-26 12:08 -0800
  Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-02-28 05:02 -0800
  Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-02-28 05:03 -0800
  Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-02-28 05:13 -0800
    Re: Adding C compiler support for transputer with TinyCC Matt Gumbley <matt.gumbley@gmail.com> - 2020-03-11 15:18 -0700
  Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-02-28 05:14 -0800
  Re: Adding C compiler support for transputer with TinyCC David Smith <agentdavo@gmail.com> - 2020-02-28 05:17 -0800

csiph-web