Source code

Simple C-language source code example, a procedural programming language. The resulting program prints "hello, world" on the computer screen. This first known "Hello world" snippet from the seminal book The C Programming Language originates from Brian Kernighan in the Bell Laboratories in 1974.[1]

In computing, source code is any collection of code, possibly with comments, written using[1] a human-readable programming language, usually as plain text. The source code of a program is specially designed to facilitate the work of computer programmers, who specify the actions to be performed by a computer mostly by writing source code. The source code is often transformed by an assembler or compiler into binary machine code understood by the computer. The machine code might then be stored for execution at a later time. Alternatively, source code may be interpreted and thus immediately executed.

Most application software is distributed in a form that includes only executable files. If the source code were included it would be useful to a user, programmer or a system administrator, any of whom might wish to study or modify the program.


The Linux Information Project defines source code as:[2]

Source code (also referred to as source or code) is the version of software as it is originally written (i.e., typed into a computer) by a human in plain text (i.e., human readable alphanumeric characters).

The notion of source code may also be taken more broadly, to include machine code and notations in graphical languages, neither of which are textual in nature. An example from an article presented on the annual IEEE conference and on Source Code Analysis and Manipulation:[3]

For the purpose of clarity "source code" is taken to mean any fully executable description of a software system. It is therefore so construed as to include machine code, very high level languages and executable graphical representations of systems.[4]

Often there are several steps of program translation or minification between the original source code typed by a human and an executable program. While some, like the FSF, argue that an intermediate file "is not real source code and does not count as source code",[5] others find it convenient to refer to each intermediate file as the source code for the next steps.

Other Languages
Afrikaans: Bronkode
العربية: شيفرة مصدرية
asturianu: Códigu fonte
azərbaycanca: Mənbə kodu
বাংলা: সোর্স কোড
Bân-lâm-gú: Goân-sú-bé
беларуская: Зыходны код
беларуская (тарашкевіца)‎: Крынічны код
български: Изходен код
bosanski: Izvorni kod
català: Codi font
čeština: Zdrojový kód
dansk: Kildekode
Deutsch: Quelltext
eesti: Lähtekood
español: Código fuente
Esperanto: Fontkodo
euskara: Iturburu kode
فارسی: کد منبع
français: Code source
한국어: 소스 코드
हिन्दी: मूल कोड
hrvatski: Izvorni kod
Bahasa Indonesia: Kode sumber
italiano: Codice sorgente
עברית: קוד מקור
Кыргызча: Баштапкы код
latviešu: Pirmkods
lietuvių: Išeitinis kodas
Bahasa Melayu: Kod sumber
Mìng-dĕ̤ng-ngṳ̄: Nguòng-dâi-mā
Mirandés: Código fuonte
မြန်မာဘာသာ: ဆို့စ်ကုတ်ဒ်
Nederlands: Broncode
norsk: Kildekode
norsk nynorsk: Kjeldekode
олык марий: Тӱҥалтыш код
Pälzisch: Quelltext
português: Código-fonte
română: Cod sursă
Runa Simi: Pukyu qillqa
русский: Исходный код
Simple English: Source code
slovenčina: Zdrojový kód
slovenščina: Izvorna koda
српски / srpski: Изворни код
srpskohrvatski / српскохрватски: Izvorni kod
svenska: Källkod
Türkçe: Kaynak kodu
українська: Початковий код
اردو: سورس کوڈ
Tiếng Việt: Mã nguồn
粵語: 原始碼
中文: 源代码