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

Newsgroups comp.sys.transputer
Date 2020-02-26 10:14 -0800
References <273acb89-d850-41f4-8fad-ee95ccf04017@googlegroups.com>
Message-ID <a10fb2ea-31ca-4c27-bbc2-446f6c52fa5f@googlegroups.com> (permalink)
Subject Re: Adding C compiler support for transputer with TinyCC
From agentdavo@gmail.com

Show all headers | 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