Is Python written in C?

0 votes
asked Dec 2, 2021 in Programming/Design by detresh8 (1,080 points)
Is Python written in C?

1 Answer

0 votes
answered Dec 2, 2021 by Shawn (99,990 points)
Python is actually a programming language written in English although you could say Python is also written in C language.

Since most modern OS are written in C, compilers/interpreters for modern high-level languages are also written in C.

Python is not an exception - its most popular/"traditional" implementation is called CPython and is written in C.

Python is an interpreted high-level general-purpose programming language.

Its design philosophy emphasizes code readability with its use of significant indentation.

Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.

Most operating systems including Windows Operating System and Linux Operating System are coded and written in C.

Microsoft's Windows kernel is developed mostly in C, with some parts in assembly language.

For decades, the world's most used operating system, with about 90 percent of the market share, has been powered by a kernel written in C.

Linux is coded in C.

Linux is written mostly in C, with some parts in assembly.

About 97 percent of the world's 500 most powerful supercomputers run the Linux kernel.

It is also used in many personal computers.

Linux kernel is written in C (and in Assembly in platform-specific portions) language. C language is the only allowed language to write kernel modules.

And there is no problem, in most of the cases.

The Linux kernel is a free and open-source, monolithic, modular, multitasking, Unix-like operating system kernel.

It was conceived and created in 1991 by Linus Torvalds for his i386-based PC, and it was soon adopted as the kernel for the GNU operating system, which was created as a free replacement for UNIX.

Since then, it has spawned a large number of operating system distributions, commonly also called Linux.

Linux is deployed on a wide variety of computing systems, such as embedded devices, mobile devices (including its use in the Android operating system), personal computers, servers, mainframes, and supercomputers.

It can be tailored for specific architectures and for several usage scenarios using a family of simple commands (that is, without the need of manually editing its source code before compilation); privileged users can also fine-tune kernel parameters at runtime.

Most of the Linux kernel code is written using the GNU extensions of GCC to the standard C programming language and with the use of architecture specific instructions (ISA).

This produces a highly optimized executable (vmlinux) with respect to utilization of memory space and task execution times.

Day-to-day development discussions take place on the Linux kernel mailing list (LKML).

Changes are tracked using the version control system git, which was created by Torvalds as a bespoke replacement for BitKeeper.

Linux as a whole is released under the GNU General Public License version 2 only (GPL-2.0-only) with an explicit syscall exception (Linux-syscall-note), but it also contains several files under other compatible licenses.

101,546 questions

97,109 answers

1,291 comments

7,003,657 users

...