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


Groups > comp.lang.c > #100261

CPU design [Was: Christmas is about Jesus Christ]

From Philipp Klaus Krause <pkk@spth.de>
Newsgroups comp.lang.c
Subject CPU design [Was: Christmas is about Jesus Christ]
Date 2016-12-25 16:53 +0100
Organization solani.org
Message-ID <o3oq22$q7n$2@solani.org> (permalink)
References <06468e8b-35a7-4833-bf23-7aec57954394@googlegroups.com> <3eb2b7c6-4d7e-4f19-bfaf-c0a4022c0bb4@googlegroups.com> <a2dbeee3-b5b7-4fe3-9c0e-03a9749b302b@googlegroups.com>

Show all headers | View raw


On 24.12.2016 21:38, Rick C. Hodgin wrote:
> To you as well.  My family has gone to visit their relatives in
> another state.  I'm working on my CPU design this weekend:
> 
>     https://github.com/RickCHodgin/libsf/tree/master/arxoda/core
> 
>     L1 cache design (my greatest achievement so far I believe):
>     https://github.com/RickCHodgin/libsf/blob/master/arxoda/core/cache_l1/cache_4read_4write.png
> 
> If you can't view this video, use VLC (www.videolan.org):
> 
>     www.libsf.org/video/arxoda_l1_cache_overview__2016_12_21.mp4
> 
> I could use some help if anybody wants to contribute their talents.  It
> is a big, complex job.  I would do much better with help.

I guess ome comp.arch group has more talent in CPU design than comp.lang.c.
However, there are some aspects of CPU architecture that are important
wrt. to making a good target for compilation of C.

From my experinece with SDCC, the following tend to be particular useful
(and some of these are missing in popular µCs):

* Efficient stack-relative addressing mode (for handling of local variables)
* Arithmetic operations where all operands are in registers (for
calculations involving temporaries)
* Index-pointer-with-offset addressing modes (for efficient array accesses)
* Pointer read instruction that stores the result in a pointer register
(so another pointer read can follow directly for multiple -> in expressions)
* Efficient push/pop (for passing stack arguments)
* Efficient stack pointer adjustment instructions (for function entry
and exit)

Philipp

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Christmas is about Jesus Christ "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-24 12:00 -0800
  Christmas is about Jesus Christ asetofsymbols@gmail.com - 2016-12-24 12:16 -0800
    Re: Christmas is about Jesus Christ "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-24 12:38 -0800
      Re: Christmas is about Jesus Christ asetofsymbols@gmail.com - 2016-12-24 23:52 -0800
        Oh, bother. Re: Christmas is about Winnie the Pooh Siri Cruise <chine.bleu@yahoo.com> - 2016-12-25 00:06 -0800
          Oh, bother. Re: Christmas is about Winnie the Pooh asetofsymbols@gmail.com - 2016-12-25 01:14 -0800
            Re: Oh, bother. Re: Christmas is about Winnie the Pooh Siri Cruise <chine.bleu@yahoo.com> - 2016-12-25 02:58 -0800
              Re: Oh, bother. Re: Christmas is about Winnie the Pooh asetofsymbols@gmail.com - 2016-12-25 04:19 -0800
      CPU design [Was: Christmas is about Jesus Christ] Philipp Klaus Krause <pkk@spth.de> - 2016-12-25 16:53 +0100
        Re: CPU design [Was: Christmas is about Jesus Christ] "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-25 09:58 -0800
          Re: CPU design "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-25 10:11 -0800
          Re: CPU design [Was: Christmas is about Jesus Christ] Philipp Klaus Krause <pkk@spth.de> - 2016-12-25 22:54 +0100
            Re: CPU design [Was: Christmas is about Jesus Christ] "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-25 17:28 -0800
              Crackpot (Was: CPU design [Was: Christmas is about Jesus Christ]) gazelle@shell.xmission.com (Kenny McCormack) - 2016-12-26 01:50 +0000
  Re: Christmas is about Jesus Christ "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-24 20:33 -0800
  Re: Christmas is about Jesus Christ "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-12-25 19:44 +0800
    Re: Christmas is about Jesus Christ ruben safir <ruben@mrbrklyn.com> - 2016-12-25 07:48 -0500
      Re: Christmas is about Jesus Christ "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-12-26 00:23 +0800
    Keeping "Han" in "Hanukkah". (was Re: Christmas is about Jesus Christ) Ken Brody <kenbrody@spamcop.net> - 2016-12-30 11:32 -0500
      Re: Keeping "Han" in "Hanukkah". (was Re: Christmas is about Jesus Christ) "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-30 08:42 -0800
        The continuing saga of a Usenet Crackpot (Was: Keeping "Han" in "Hanukkah". (was Re: Christmas is about Jesus Christ)) gazelle@shell.xmission.com (Kenny McCormack) - 2016-12-30 18:48 +0000
  Re: Christmas is about Jesus Christ john.ladasky@gmail.com - 2016-12-25 11:25 -0800
    Re: Christmas is about Jesus Christ "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-12-26 19:11 +0800
      Re: Christmas is about Jesus Christ Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-26 06:34 -0800
        Rick Hodgin (was Re: Christmas is about Jesus Christ) Ken Brody <kenbrody@spamcop.net> - 2016-12-30 11:34 -0500
          Re: Rick Hodgin (was Re: Christmas is about Jesus Christ) "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-30 08:51 -0800
            Crackpot (Was: Rick Hodgin (was Re: Christmas is about Jesus Christ)) gazelle@shell.xmission.com (Kenny McCormack) - 2016-12-30 18:50 +0000
            Re: Rick Hodgin (was Re: Christmas is about Jesus Christ) Ken Brody <kenbrody@spamcop.net> - 2017-01-03 10:18 -0500
              Re: Rick Hodgin (was Re: Christmas is about Jesus Christ) "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2017-01-03 07:24 -0800
      Re: Christmas is about Jesus Christ gazelle@shell.xmission.com (Kenny McCormack) - 2016-12-26 14:51 +0000
        Re: Christmas is about Jesus Christ "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-26 08:00 -0800
          [OT] Unnecessary preaching... "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-12-27 00:03 +0800
            Re: [OT] Unnecessary preaching... "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-26 08:17 -0800
        [OT] "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-12-27 00:02 +0800
  Re: Christmas is about Jesus Christ ImperiusDamian <damianblack.wolf@gmail.com> - 2016-12-26 18:05 -0500
    Re: Christmas is about Jesus Christ "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-12-26 15:15 -0800
    Re: Christmas is about Jesus Christ Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-30 13:52 -0800
      Re: Christmas is about Jesus Christ ImperiusDamian <damianblack.wolf@gmail.com> - 2016-12-31 17:31 -0500
        Re: Christmas is about Jesus Christ fir <profesor.fir@gmail.com> - 2016-12-31 15:30 -0800

csiph-web