Source code: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>NedBot
m (Bot: Removing from Category:Inner Workings; cosmetic changes)
Line 3: Line 3:
XBMC's [http://en.wikipedia.org/wiki/Source_code source code] is in C++ (and some Assembly) programming-language, (and a few dependency libraries in the C programming-language), and for the Xbox this source code needs to be compiled (built) with the [[XDK]] before it can be used.  
XBMC's [http://en.wikipedia.org/wiki/Source_code source code] is in C++ (and some Assembly) programming-language, (and a few dependency libraries in the C programming-language), and for the Xbox this source code needs to be compiled (built) with the [[XDK]] before it can be used.  


*Source Code is the recipe for a computer program.
* Source Code is the recipe for a computer program.
**Source code is geared towards human-readibility.
** Source code is geared towards human-readibility.
**Source code is useless by itself.
** Source code is useless by itself.
**Source code needs to be interpreted and understod (compiled).
** Source code needs to be interpreted and understod (compiled).




Line 19: Line 19:
Although these commands are intelligible to engineers, they are useless to computers, which understand only ones and zeros. So, to make the source code into a functioning program, translation software (called a "compiler") must convert it into the binary "object code" that computers can process.  
Although these commands are intelligible to engineers, they are useless to computers, which understand only ones and zeros. So, to make the source code into a functioning program, translation software (called a "compiler") must convert it into the binary "object code" that computers can process.  


*To compile XBMC to make a Xbox excutable file you need:
* To compile XBMC to make a Xbox excutable file you need:
**Full installation (not minimum) of "Microsoft Visual Studio .NET 7.1" (2003 version).
** Full installation (not minimum) of "Microsoft Visual Studio .NET 7.1" (2003 version).
**Microsoft Xbox SDK (a.k.a. [[XDK]]) version 5778 or 5849.
** Microsoft Xbox SDK (a.k.a. [[XDK]]) version 5778 or 5849.
[[category:Development]]
 
[[category:Inner Workings]]
[[Category:Development]]

Revision as of 23:35, 26 November 2011

What is Source Code?

XBMC's source code is in C++ (and some Assembly) programming-language, (and a few dependency libraries in the C programming-language), and for the Xbox this source code needs to be compiled (built) with the XDK before it can be used.

  • Source Code is the recipe for a computer program.
    • Source code is geared towards human-readibility.
    • Source code is useless by itself.
    • Source code needs to be interpreted and understod (compiled).


Source code is simply the human-readable version of the computer commands that make up a software program. It is the letters and symbols that software engineers (a.k.a. developers) type into their computers when they create an software-application or operating-system. For example, if a C++ programmer wrote a program to make his computer display the words, "Hello, World," the source code might look like this: <cpp>

#include <iostream.h>
void main()
{
cout<<"Hello, World";
}

</cpp> Although these commands are intelligible to engineers, they are useless to computers, which understand only ones and zeros. So, to make the source code into a functioning program, translation software (called a "compiler") must convert it into the binary "object code" that computers can process.

  • To compile XBMC to make a Xbox excutable file you need:
    • Full installation (not minimum) of "Microsoft Visual Studio .NET 7.1" (2003 version).
    • Microsoft Xbox SDK (a.k.a. XDK) version 5778 or 5849.