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
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)