Sujet : Re: C23 on MSVC
De : antispam (at) *nospam* fricas.org (Waldek Hebisch)
Groupes : comp.lang.cDate : 26. Jan 2025, 00:36:41
Autres entêtes
Organisation : To protect and to server
Message-ID : <vn3si7$2ju4t$1@paganini.bofh.team>
References : 1 2 3 4
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
Jack Lemmon <
noreply@mandrill.com> wrote:
On 22/01/2025 05:41, Lawrence D'Oliveiro wrote:
On Wed, 22 Jan 2025 02:45:20 +0000, Jack Lemmon wrote:
Microsoft's main language is C# and they are investing a lot on it. They
want C# to be the main language for everyday use.
What did they write C♯ in, though?
First release was written in assembly code. Subsequent releases are in
C# itself. The c# language is class based object oriented, so you don't
need anything else to expand the language. Just write a new object and
compile it to be used by other objects. This is the same as in C or C++.
First release were in assembly and any enhancement were in the same
language = C or C++ respectively.
Do you have insider info? Writing substantial piece of code in
nineties using assembler would be highly unusual. Slightly
earlier Microsoft supposedly had a rule that all code should
be in C (presumably with exceptions for lowest level machine
dependencies and some performance critical parts, but both
should be relatively small).
Also, when a company has compilers for multiple languages, it
is natural to share substantial part for other languages. In
case of gcc Ada front-end is in Ada, but most work is in "middle
end" that is common to all compilers in gcc and is written in C++.
I would guess that now Microsoft C compiler is written in C++.
-- Waldek Hebisch