• Build a processor that will work well with LCC

    From Donn Stewart@21:1/5 to All on Sat Feb 3 15:11:30 2018
    I have built two computer processors, most recently an 8-bit processor. It is very simple though, a pure accumulator-memory machine. I would like to build another more capable processor, and retarget LCC to it. What are the important processor features
    that would help?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Percival@21:1/5 to Donn Stewart on Sun Feb 4 18:18:59 2018
    Donn Stewart wrote:
    I have built two computer processors, most recently an 8-bit processor.

    Built from what? TTL chips, transistors, relays, ...?

    It is very simple though, a pure accumulator-memory machine. I would like to build another more capable processor, and retarget LCC to it. What are the important processor features that would help?


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jacobnavia@21:1/5 to All on Mon Feb 5 01:03:00 2018
    Le 04/02/2018 à 00:11, Donn Stewart a écrit :
    I have built two computer processors, most recently an 8-bit processor. It is very simple though, a pure accumulator-memory machine. I would like to build another more capable processor, and retarget LCC to it. What are the important processor features
    that would help?


    wow...

    It depends on your next model of course. How that will be?

    Do not worry much with lcc, that is the really easy part.

    Build more registers, if possible. You have a stack machine (accumulator<-->memory). Put some of the stack in more registers and use
    forth.

    I wrote an lcc-->forth compiler long ago, it is not very difficult.

    A more capable model would cache some values of the stack in a register
    set, and have 16 bit operations.

    Using 16 bit operations, you can have floating point with the cephes
    math library, that will give you single, double and even long double
    floating point. That is written in C, so if the cpu works, the compiler
    works, floating point will work.

    jacob

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)