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


Groups > comp.lang.c > #389087

Re: 80386 C compiler

From Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups comp.lang.c
Subject Re: 80386 C compiler
Date 2024-11-25 18:23 +0000
Organization A noiseless patient Spider
Message-ID <20241125101701.894@kylheku.com> (permalink)
References <vhvbhf$28opb$1@dont-email.me> <vhvsm9$2bmq9$1@dont-email.me> <vi0dt1$2el7m$1@dont-email.me>

Show all headers | View raw


On 2024-11-24, Paul Edwards <mutazilah@gmail.com> wrote:
> "Janis Papanagnou" <janis_papanagnou+ng@hotmail.com> wrote in message
> news:vhvsm9$2bmq9$1@dont-email.me...
>> On 24.11.2024 15:00, Paul Edwards wrote:
>> >
>> > I have been after a public domain C compiler for decades.
>> > [...] I'm after C90 written in C90.
>>
>> Why formulate the latter condition if you can bootstrap?
>> (Did you mean; written in a "C" not more recent than C90?)
>
> Yes - written in C90 so that it can be maintained with
> just knowledge of C90.
>
> And also written in C90 so that it is written naturally
> for a C90 programmer, not using a subset of C90

But, do yourself a favor and, have it as an extension to allow
non-constant expressions to allow block scoped aggregates:

 void fn(int a)
 {
   int x[3] = { foo(), bar(), a }; /* not in C90 */

(You don't have to use it in the source code of the thing,
so it can be boostrapped by other C90 compilers without
the extension.)

Also, pin down the truncation behavior of / and % to match C99.
(Though, again, without relying on that in the C90 source
of the compiler.)

Define the behavior of a [0] array at the end of a struct,
so that the C90 struct hack is "blessed" in your implementation.
The C99 flexible array member cannot be used, after all.
You can have it so that [0] has the same semantics as C99 []
in that role.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

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


Thread

80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-24 22:00 +0800
  Re: 80386 C compiler fir <profesor.fir@gmail.com> - 2024-11-24 18:51 +0100
    Re: 80386 C compiler fir <profesor.fir@gmail.com> - 2024-11-24 18:58 +0100
      Re: 80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-25 08:00 +0800
    Re: 80386 C compiler Bart <bc@freeuk.com> - 2024-11-24 18:00 +0000
      Re: 80386 C compiler BGB <cr88192@gmail.com> - 2024-11-24 17:46 -0600
        Re: 80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-25 08:15 +0800
  Re: 80386 C compiler Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-11-24 19:52 +0100
    Re: 80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-25 07:46 +0800
      Re: 80386 C compiler Kaz Kylheku <643-408-1753@kylheku.com> - 2024-11-25 18:23 +0000
        Re: 80386 C compiler Rosario19 <Ros@invalid.invalid> - 2024-11-25 22:14 +0100
          Re: 80386 C compiler Kaz Kylheku <643-408-1753@kylheku.com> - 2024-11-26 17:59 +0000
            Re: 80386 C compiler Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-11-26 13:05 -0800
              Re: 80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-27 05:30 +0800
                Re: 80386 C compiler Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-11-26 14:27 -0800
                Re: 80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-27 13:23 +0800
                Re: 80386 C compiler Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-11-26 21:59 -0800
                Re: 80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-27 21:50 +0800
              Re: 80386 C compiler Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-27 16:45 -0800
            Re: 80386 C compiler David Brown <david.brown@hesbynett.no> - 2024-11-27 11:00 +0100
              Re: 80386 C compiler Kaz Kylheku <643-408-1753@kylheku.com> - 2024-11-27 19:42 +0000
                Re: 80386 C compiler James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-11-27 14:59 -0500
                Re: 80386 C compiler Kaz Kylheku <643-408-1753@kylheku.com> - 2024-11-27 21:52 +0000
                Re: 80386 C compiler James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-11-27 18:07 -0500
                Re: 80386 C compiler Kaz Kylheku <643-408-1753@kylheku.com> - 2024-11-30 01:30 +0000
                Re: 80386 C compiler Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-29 21:00 -0800
                Re: 80386 C compiler James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-11-30 09:00 -0500
                Re: 80386 C compiler David Brown <david.brown@hesbynett.no> - 2024-11-28 09:12 +0100
            Re: 80386 C compiler Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-27 19:26 -0800
            Re: 80386 C compiler Rosario19 <Ros@invalid.invalid> - 2024-11-30 16:41 +0100
        Re: 80386 C compiler "Paul Edwards" <mutazilah@gmail.com> - 2024-11-26 10:48 +0800
  Re: 80386 C compiler Lynn McGuire <lynnmcguire5@gmail.com> - 2024-11-25 15:55 -0600
    Re: 80386 C compiler Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-11-25 14:10 -0800
      Re: 80386 C compiler Lynn McGuire <lynnmcguire5@gmail.com> - 2024-11-25 18:32 -0600
        Re: 80386 C compiler Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-11-25 16:49 -0800
          Re: 80386 C compiler BGB <cr88192@gmail.com> - 2024-11-26 13:22 -0600

csiph-web