source code


Also found in: Dictionary, Thesaurus, Medical, Legal, Financial, Acronyms, Wikipedia.
Related to source code: Open Source Code

source code

Computing the original form of a computer program before it is converted into a machine-readable code

source code

[′sȯrs ‚kōd]
(computer science)
The statements in which a computer program is initially written before translation into machine language.

source code

(language, programming)
(Or "source", or rarely "source language") The form in which a computer program is written by the programmer. Source code is written in some formal programming language which can be compiled automatically into object code or machine code or executed by an interpreter.

source code

Programming statements and instructions that are written by the developer. Source code is what a programmer writes, but it is not directly executable by the computer. It must be converted into machine language by compilers, assemblers or interpreters.

In some cases, source code can be machine generated by programs that convert the source code of one programming language or dialect into the source code of another language or dialect. See lines of code, compiler, assembler and interpreter.

High Level vs. Low Level
Most programmers write in high-level languages such as C/C++ and Java. However, there are programs written in assembly language, which is essentially a mnemonic version of the hardware's machine language. Following are examples of both high and low level for converting Fahrenheit to Celsius.

C (High Level)

  float fahr;
  printf("Enter Fahrenheit: ");
  scanf("%f", &fahr);
  printf("Celsius is %f\n", (fahr-32)*5/9);


  Python (High Level)

  printf("Enter Fahrenheit: ")
  fahr = float(input)
  cell = ((fahr -32) * 5 / 9, 1)
  printf("Celsius is {}".format(cell))


  Java (High Level)

   import java.io.*;
 class Convert {
  public static void main(String[]args)
  throws IOException {
   float fahr;
   StreamTokenizer in=new
     StreamTokenizer
       (new InputStreamReader(System.in));
   System.out.print("Enter Fahrenheit ");
   in.nextToken();
   fahr = (float) in.nval;
   System.out.println ("Celsius is " +
                        (fahr-32)*5/9);
  }
 }


  Intel x86 Assembly Language (Low Level)

  cseg    segment para public 'CODE'
          assume  cs:cseg,ds:cseg
  start:
          jmp     start1
  msgstr  db      'Enter Fahrenheit '
  crlf    db      13,10,'$'
  nine    db      9
  five    db      5
  outstr  db      'Centrigrade is $'
  start1: push    ds
          push    cs
          pop     ds
          mov     dx,offset cseg:msgstr
          mov     ah,9
          int     21h
  sloop:
  cent:   call    getnumb
          test    ax,ax
          je      exit
          push    ax
          mov     dx,offset cseg:outstr
          mov     ah,9
          int     21h
          pop     ax
          sub     ax,32
          jns     c1
          push    ax
          mov     dl,'-'
          mov     ah,6
          int     21h
          pop     ax
          neg     ax
  cl:     mul     five
          div     nine
          call    putval
          mov     dx,offset cseg:crlf
          mov     ah,9
          int     21h
          jmp     sloop
  exit:   pop     ds
          mov     ah,4ch
          int     21h
  getnumb:
          xor     bx,bx
  llp:    mov     dl,0ffh
          mov     ah,1
          int     21h
          cmp     al,0dh
          je      llr
          sub     al,'0'
          jb      llr
          cmp     al,'9'
          ja      llr
          xor     ah,ah
          shl     bx,1
          add     ax,bx
          shl     bx,1
          shl     bx,1
          add     bx,ax
          jmp     llp
  llr:    mov     dx,offset cseg:crlf
          mov     ah,9
          int     21h
          mov     ax,bx
          ret
  putval: xor     bx,bx
          push    bx
          mov     bx,10
  llg:    xor     dx,dx
          div     bx
          add     dx,'0'
          push    dx
          test    ax,ax
          jne     llg
  bloop:  pop     dx
          test    dx,dx
          je      endx
          mov     ah,6
          int     21h
          jmp     bloop
  endx:   ret
  cseg    ends
          end     start
References in periodicals archive ?
In order to recover traceability links between source code and documentation, they used latent semantic indexing (LSI) [11] by applying singular value decomposition [12] to determine textual similarities among words and documents.
This quote from an interview I conducted in the course of this study grasps a fundamental argument I want to bring forward in this article: that software source code should be analyzed as an interface with which actors interact to build or modify software.
An open source system is an environment where the source code is available to the general public for use and/or modification from its original design.
Fujitsu Laboratories has now developed a technology that can quickly compare changes in the source code by analyzing functions' call paths from the source code.
The driving concept behind open source software is that the source code should be freely available for all to use, and if someone uses it to create new source code and a new application, that new source code should be freely available for others to use as well.
Intertainment Media Inc (TSX VENTURE:INT)(OTC:ITMTF)(FRA:I4T.F) announced on Monday that Yappn Corp (OTC:YPPN) has agreed to purchase a copy of the Ortsbo Inc source code for its language services platform.
Some sellers, said Etay Maor, a Trusteer executive, are offering what they claim is the Carberp source code for $5,000.
This is the question being raised by poll watchdogs over the elections tomorrow despite the turnover of the highly disputed source code on Thursday, which was late by almost three months and therefore violating a provision of the Automated Election System (AES) Law.
VMware warned on Sunday that more of its source code for its ESX hypervisor technology could become public after another batch of code was released by a hacker.
Called SourceSale.com, the new site is targeted at users who are looking to acquire source code and those who are looking to distribute code at an arranged price.
The nifty speculative thriller Source Code obeys one of the fundamental rules of Hollywood, wherein amateurs borrow and professionals steal.
SOURCE CODE (12A) Starring: Jake Gyllenhaal, Vera Farmiga, Michelle Monaghan, Jeffrey Wright, Michael Arden, Craig Thomas.