Sign in Join
Wiki copytemporary

Source code: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Source code

OldNewLine
1+\
2+\
3+**Source Code** is the file or group of [[Text|text]] files which are processed by a [[Compiler|compiler]] or an [[Assembler|assembler]] and translated into either an [[Executable program|executable program]] or an [[Object module|object module]], or into another source [[File|file]] for subsequent translation into an executable program or an object module by another compiler or an assembler.
4+
5+For the purposes of this system, generally source code is written in [[Pascal]], and is processed by the FPC Pascal [[Compiler]], to produce assembly language source code which is then passed to the assembler, which then produces the executable program.
6+
7+The FPC Pascal compiler does not directly produce an executable program; instead it translates Pascal code into [[Assembly language|assembly language]], then transfers control to the [[Assembler|assembler]] to translate the generated assembly code into an executable program. This allows the compiler to be relatively similar for all target machines, it does not have to know the object file formats and [[Binary|binary]] file write routines for every target system, it simply has to know how to generate assembly code.
8+
9+If this compiler were for another programming language such as Basic, C or [[Fortran]], source code would be written in that language rather than in Pascal.
10+
11+---
12+*From the Free Pascal wiki, page "Source code", as it stood on 2013-06-23 after a change by Olaf, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history