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


Groups > comp.lang.c > #96532 > unrolled thread

Simplest compiler for C

Started by"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
First post2016-11-14 18:57 +0800
Last post2016-11-15 20:15 +0800
Articles 9 on this page of 89 — 16 participants

Back to article view | Back to comp.lang.c


Contents

  Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-14 18:57 +0800
    Re: Simplest compiler for C Mark Storkamp <mstorkamp@yahoo.com> - 2016-11-14 08:44 -0600
      Re: Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-14 22:46 +0800
    Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-14 08:15 -0800
      Re: Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-15 01:29 +0800
        Re: Simplest compiler for C Dutch Ingraham <spikeheron@att.net> - 2016-11-14 11:43 -0600
          Re: Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-15 19:18 +0800
        Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-14 18:23 +0000
          Re: Simplest compiler for C jacobnavia <jacob@jacob.remcomp.fr> - 2016-11-14 20:09 +0100
            Re: Simplest compiler for C Gareth Owen <gwowen@gmail.com> - 2016-11-14 19:11 +0000
            Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-14 19:42 +0000
              Re: Simplest compiler for C fir <profesor.fir@gmail.com> - 2016-11-14 12:00 -0800
                Re: Simplest compiler for C fir <profesor.fir@gmail.com> - 2016-11-14 12:17 -0800
                  Re: Simplest compiler for C fir <profesor.fir@gmail.com> - 2016-11-14 12:19 -0800
                Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-14 12:40 -0800
                  Re: Simplest compiler for C fir <profesor.fir@gmail.com> - 2016-11-14 13:08 -0800
                    Re: Simplest compiler for C fir <profesor.fir@gmail.com> - 2016-11-14 13:12 -0800
              Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-14 12:10 -0800
              Re: Simplest compiler for C David Brown <david.brown@hesbynett.no> - 2016-11-15 10:05 +0100
            Re: Simplest compiler for C David Brown <david.brown@hesbynett.no> - 2016-11-15 09:50 +0100
      Re: Simplest compiler for C luser droog <luser.droog@gmail.com> - 2016-11-14 09:39 -0800
      Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-14 09:53 -0800
        Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-14 10:31 -0800
          Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-14 18:57 +0000
            Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-14 11:07 -0800
          Re: optimization "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-15 19:20 +0800
          Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-15 12:56 +0000
            Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-15 05:34 -0800
              Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-15 16:07 +0000
                Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-15 08:59 -0800
                  Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-15 21:35 +0000
                    Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-15 15:33 -0800
                      Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-16 14:58 +0000
                        Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-16 08:44 -0800
                          Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-16 08:54 -0800
                            Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-16 09:11 -0800
                              Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-16 09:36 -0800
                                Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-16 11:41 -0800
                                  Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-16 11:45 -0800
                                    Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-16 18:54 -0800
                                      Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-17 04:44 -0800
                                        Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-17 08:42 -0800
                                          Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-17 09:17 -0800
                                            Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-17 09:42 -0800
                                            Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-17 09:57 -0800
                                              Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-17 10:07 -0800
                                                Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-17 11:35 -0800
                                                  Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-17 12:02 -0800
                                                    Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-17 13:23 -0800
                                                      Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-17 13:55 -0800
                                                        Re: Simplest compiler for C supercat@casperkitty.com - 2016-11-17 15:15 -0800
                                                      Re: Simplest compiler for C David Brown <david.brown@hesbynett.no> - 2016-11-18 10:41 +0100
                                                        Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-18 12:12 +0000
                                                          Re: Simplest compiler for C David Brown <david.brown@hesbynett.no> - 2016-11-18 13:24 +0100
                                                        Re: Simplest compiler for C Jerry Stuckle <jstucklex@attglobal.net> - 2016-11-18 09:45 -0500
                                                  Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-17 20:08 +0000
                                                    Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-17 12:21 -0800
                                        Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-18 03:22 -0800
                                          Re: Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-18 19:23 +0800
                                            Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-18 03:36 -0800
                                              Re: Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-18 19:52 +0800
                                          Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-19 17:55 -0800
                          Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-16 17:19 +0000
                            Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-16 19:09 +0000
                            Re: Simplest compiler for C David Brown <david.brown@hesbynett.no> - 2016-11-16 23:12 +0100
                              Re: Simplest compiler for C "Chris M. Thomasson" <invalid@invalid.invalid> - 2016-11-16 14:21 -0800
                                Re: Simplest compiler for C "James R. Kuyper" <jameskuyper@verizon.net> - 2016-11-16 18:02 -0500
                                  Re: Simplest compiler for C "Chris M. Thomasson" <invalid@invalid.invalid> - 2016-11-17 17:01 -0800
                                    Re: Simplest compiler for C "Chris M. Thomasson" <invalid@invalid.invalid> - 2016-11-18 01:05 -0800
                                  Re: Simplest compiler for C jameskuyper@verizon.net - 2016-11-18 10:38 -0800
                                    Re: Simplest compiler for C "Chris M. Thomasson" <invalid@invalid.invalid> - 2016-11-20 15:38 -0800
                                Re: Simplest compiler for C David Brown <david.brown@hesbynett.no> - 2016-11-17 09:57 +0100
                              Re: Simplest compiler for C BartC <bc@freeuk.com> - 2016-11-17 11:25 +0000
                        Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-16 08:56 -0800
                        Re: Simplest compiler for C fir <profesor.fir@gmail.com> - 2016-11-16 09:10 -0800
                          Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-16 09:34 -0800
            Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-15 06:32 -0800
              [OT] Output of C compilers and CPU architectures "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-15 22:50 +0800
                Re: [OT] Output of C compilers and CPU architectures "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-15 07:46 -0800
                  Re: [OT] Output of C compilers and CPU architectures "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-16 00:12 +0800
                    Re: [OT] Output of C compilers and CPU architectures "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-15 09:02 -0800
                      Re: [OT] Output of C compilers and CPU architectures "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-16 01:14 +0800
                        Re: [OT] Output of C compilers and CPU architectures "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-15 09:24 -0800
                          Re: [OT] Output of C compilers and CPU architectures "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-16 01:27 +0800
      Re: Simplest compiler for C Anton Shepelev <anton.txt@gmail.com> - 2016-11-14 21:49 +0300
        Re: Simplest compiler for C "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-11-14 11:02 -0800
    Re: Simplest compiler for C Anton Shepelev <anton.txt@gmail.com> - 2016-11-14 21:37 +0300
      Re: Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-15 18:07 +0800
      Re: Simplest compiler for C "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2016-11-15 20:15 +0800

Page 5 of 5 — ← Prev page 1 2 3 4 [5]


#96611 — Re: [OT] Output of C compilers and CPU architectures

From"Rick C. Hodgin" <rick.c.hodgin@gmail.com>
Date2016-11-15 09:02 -0800
SubjectRe: [OT] Output of C compilers and CPU architectures
Message-ID<e903224a-e1a9-4eaf-b650-d82ac868b2fd@googlegroups.com>
In reply to#96608
On Tuesday, November 15, 2016 at 11:13:01 AM UTC-5, Mr. Man-wai Chang wrote:
> On 15/11/2016 11:46 PM, Rick C. Hodgin wrote:
> >
> > What world do you want to live in, Mr. Man-wai Chang?  The one where
> > everything is wholly divided and isolated into finite and explicitly
> > purposed forms?  No structural building should ever be beautiful?  No
> > library should also include artwork on the walls?
> >
> > There are a plethora of people in this group who will speak to you
> > about any issue of C you'd like to address.  The C Standard language,
> > quirks of a particular C compiler implementation, etc.
> >
> > I don't know about you, but to me those subjects are interesting, but
> > they are also boring when that's all there is.  We who are C developers
> > likely share some common interests in things related to C.  Each of us
> > has a domain and range and our domains and ranges overlap in some
> > common areas.  Should we devote a dedicated group to addressing each
> > and every one of those common overlaps?  Or should be have the more
> > aesthetic world view that we can come together and share in these
> > related interests here in this group?
> >
> > That's the group I prefer.
> 
> Please don't get emotional, Master.

"And don't call me 'Master.'  I'm not a Spanish person.  I've never even
been to Spain."

Extra credit to anyone who can recognize the original quote I've adapted
here.  I left in a few clues.

>  > > > (1)  Larger FPU/SIMD register set
>  >>
> >> BTW, anyone of you using AMD PC? :)
> >
> > Mr. Man-wai Chang, are we still taking about C the programming language?
> 
> I saw registers.

I see skies of blue.  And clouds of white.  The bright blessed day.
The dark sacred night.  And I think to myself:  What a wonderful
world.

> Aren't they related to CPU architecture?

Yes.  And in the same way ham is related to a ham sandwich.

> Then could we extend the chat to AMD vs Intel CPUs?

Well of course we could, but were we to do so your hypocrisy would
start glowing.

Best regards,
Rick C. Hodgin

[toc] | [prev] | [next] | [standalone]


#96613 — Re: [OT] Output of C compilers and CPU architectures

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2016-11-16 01:14 +0800
SubjectRe: [OT] Output of C compilers and CPU architectures
Message-ID<o0ffoh$a25$4@dont-email.me>
In reply to#96611
On 16/11/2016 1:02 AM, Rick C. Hodgin wrote:
>
> "And don't call me 'Master.'  I'm not a Spanish person.  I've never even
> been to Spain."

No, I was referring to Star Wars, Master. :)

 > I see skies of blue.  And clouds of white.  The bright blessed day.
 > The dark sacred night.  And I think to myself:  What a wonderful
 > world.

Were you impressed and cursed by this song? :)

>> I saw registers.
>> Aren't they related to CPU architecture?
>
> Yes.  And in the same way ham is related to a ham sandwich.
>
>> Then could we extend the chat to AMD vs Intel CPUs?
>
> Well of course we could, but were we to do so your hypocrisy would
> start glowing.

I will start a new topic about this, so as not to *pollute* this thread. :)

[toc] | [prev] | [next] | [standalone]


#96615 — Re: [OT] Output of C compilers and CPU architectures

From"Rick C. Hodgin" <rick.c.hodgin@gmail.com>
Date2016-11-15 09:24 -0800
SubjectRe: [OT] Output of C compilers and CPU architectures
Message-ID<a7206736-1a5f-4a96-a0d8-eef7dba74da5@googlegroups.com>
In reply to#96613
On Tuesday, November 15, 2016 at 12:14:33 PM UTC-5, Mr. Man-wai Chang wrote:
> On 16/11/2016 1:02 AM, Rick C. Hodgin wrote:
> >
> > "And don't call me 'Master.'  I'm not a Spanish person.  I've never even
> > been to Spain."
> 
> No, I was referring to Star Wars, Master. :)

Well ... you have no cause to call me "Master."  For I am not a master,
but am a consistent student.  I shall remain so, I presume, until the
day I depart this world.

>  > I see skies of blue.  And clouds of white.  The bright blessed day.
>  > The dark sacred night.  And I think to myself:  What a wonderful
>  > world.
> 
> Were you impressed and cursed by this song? :)

I laughed.  I cried.  It became a part of me.

Actually, I look out across the world and even here in the midst of
all the destruction from sin and death, the beautify of God's intended
creation remains.  In butterflies, flowers, birds, aquatic life, and
even in each of us.  Consider the design required to make a human's
arm work as flawlessly as a human's arm works.  We don't have the
technology today to create prosthetic limbs, yet even the tiniest baby
has this grand masterpiece of engineering.

So yes, such things affect me in a multitude of ways when I step back
and consider them richly.

> >> I saw registers.
> >> Aren't they related to CPU architecture?
> >
> > Yes.  And in the same way ham is related to a ham sandwich.
> >
> >> Then could we extend the chat to AMD vs Intel CPUs?
> >
> > Well of course we could, but were we to do so your hypocrisy would
> > start glowing.
> 
> I will start a new topic about this, so as not to *pollute* this thread. :)

You seem to do that a lot.  I am reminded of Ramine.

Best regards,
Rick C. Hodgin

[toc] | [prev] | [next] | [standalone]


#96616 — Re: [OT] Output of C compilers and CPU architectures

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2016-11-16 01:27 +0800
SubjectRe: [OT] Output of C compilers and CPU architectures
Message-ID<o0fggj$dr0$1@dont-email.me>
In reply to#96615
On 16/11/2016 1:24 AM, Rick C. Hodgin wrote:
> Well ... you have no cause to call me "Master."  For I am not a master,
> but am a consistent student.  I shall remain so, I presume, until the
> day I depart this world.

Everyone can be an eternal student, Master. There is no end to learning, 
as time and space changes. :)

>>
>> I will start a new topic about this, so as not to *pollute* this thread. :)
>
> You seem to do that a lot.  I am reminded of Ramine.

That's why I called you "Master". I just don't understand the extended 
chat here, as it goes *PHILOSOPHICAL*! :)

[toc] | [prev] | [next] | [standalone]


#96556

FromAnton Shepelev <anton.txt@gmail.com>
Date2016-11-14 21:49 +0300
Message-ID<20161114214916.211d610fa3d7b3a0ad2e3abc@gmail.com>
In reply to#96539
Rick C. Hodgin:

> Niklaus  Wirth's  "Algorithms  + Data Structures =
> Programs" and Jan van de Snepscheut "What  Comput-
> ing  is  All  About"  are  also nice resources for
> learning how to create compilers.

Wirth has written a book titled "Compiler  construc-
tion":

   http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf

-- 
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

[toc] | [prev] | [next] | [standalone]


#96558

From"Rick C. Hodgin" <rick.c.hodgin@gmail.com>
Date2016-11-14 11:02 -0800
Message-ID<365fa733-ae4b-4b78-840d-e05f58b18631@googlegroups.com>
In reply to#96556
On Monday, November 14, 2016 at 1:49:23 PM UTC-5, Anton Shepelev wrote:
> Rick C. Hodgin:
> 
> > Niklaus  Wirth's  "Algorithms  + Data Structures =
> > Programs" and Jan van de Snepscheut "What  Comput-
> > ing  is  All  About"  are  also nice resources for
> > learning how to create compilers.
> 
> Wirth has written a book titled "Compiler  construc-
> tion":
> 
>    http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf

Thank you, sir!

Best regards,
Rick C. Hodgin

[toc] | [prev] | [next] | [standalone]


#96554

FromAnton Shepelev <anton.txt@gmail.com>
Date2016-11-14 21:37 +0300
Message-ID<20161114213756.688ca0970b71f5984afb42ac@gmail.com>
In reply to#96532
Mr. Man-wai Chang:

> Is it called Tiny C Compiler? is it still alive, and well? :)

There is also neatcc by a Muslim programmer:

http://litcave.rudi.ir/

Its full source is about 178 Kb.  This compiler implements
"a large subset of ANSI C" and has optimisations.

-- 
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

[toc] | [prev] | [next] | [standalone]


#96590

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2016-11-15 18:07 +0800
Message-ID<o0emnl$em4$6@dont-email.me>
In reply to#96554
On 15/11/2016 2:37 AM, Anton Shepelev wrote:
> Mr. Man-wai Chang:
>
>> Is it called Tiny C Compiler? is it still alive, and well? :)
>
> There is also neatcc by a Muslim programmer:
> http://litcave.rudi.ir/

I read that page. Too many extra functions to be consider "simplest". 
It's trying to do a lot of things.

[toc] | [prev] | [next] | [standalone]


#96598

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2016-11-15 20:15 +0800
Message-ID<o0eu8r$8sa$2@dont-email.me>
In reply to#96554
On 15/11/2016 2:37 AM, Anton Shepelev wrote:
>
> Its full source is about 178 Kb.  This compiler implements
> "a large subset of ANSI C" and has optimisations.

Can a compiler rely on another compiler and then on even more compilers, 
like a stack of cards if not dead bodies, to claim as being the simplest 
and smallest? :)

[toc] | [prev] | [standalone]


Page 5 of 5 — ← Prev page 1 2 3 4 [5]

Back to top | Article view | comp.lang.c


csiph-web