CT GunZ Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.
CT GunZ Server

CT GunZ EN-Forums
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Ger Forums  GunZ Register  Server  VOTE please  Be Donator  Download CTGunZ  Log inLog in  

 

 Coding TuT 11

Go down 
4 posters
AuthorMessage
bossxd
BANNED
BANNED
bossxd


Male

Number of posts : 21
Location : usa
Points : 64
Character : Noname
GunZ Exp (nub/pro) :
Coding TuT 11 Left_bar_bleue0 / 1000 / 100Coding TuT 11 Right_bar_bleue

Registration date : 2009-04-12
Reputation : 0


Coding TuT 11 Empty
PostSubject: Coding TuT 11   Coding TuT 11 EmptyTue Apr 14, 2009 10:48 am

What does a compiler actually do?

Compiling, linking and machine code

Why compile?
The C/C++ code cannot be run as it stands in a source file. If you are familiar with Perl, PHP or ASP, this may appear strange. These languages are scripting languages rather than compiled languages. In all cases, the code must be translated into a form readable by the machine (machine code) - the difference is when this translation occurs. Scripting languages do at least some of this translation at run-time - leading to a short delay before the code is executed. Compiled languages like C and C++ do all the translation before execution. This saves time in execution and is one reason why most operating system code and application code is written in a compiled language like C.

One of the consequences of using a compiled language is that the source code cannot be easily recreated from the executable (binary) file. Scripting languages must release at least some source code for the program to be run. Compiled languages have the option of not releasing source code. Once compiled, C and C++ programs will execute on other compatible systems without the compiler being present whereas scripting languages must be distributed with the scripting engine that can complete the translation to machine code instructions for the CPU. The independence of compiled code from the compiler and the source code has contributed substantially to the current dominance of certain proprietary systems. The compiled code therefore removes freedoms from the user to benefit the provider. Free software prevents the erosion of user freedom by distributing source code, compiler and compiled executable at the same time.

Link or not to link
Compiled code can only operate without the compiler because the definitions of each keyword and function are included within the executable. When using only standard libraries, the compiler will do all the work of matching your keywords and functions with the code that actually performs the work before starting to compile the complete code. When you need to use code and libraries outside the standard library, the compiler needs the help of the linker program to match all the functions in your code. The linker uses the header files of the library files to calculate where and how to link your program to the compiled library. Different compilers and development environments configure the link in different ways. It is often done by including the library header files and location of the library itself in the project file. In GNU/Linux, this is commonly via a Makefile.
Back to top Go down
Torrentspy
Administrator
Administrator
Torrentspy


Male

Number of posts : 843
Location : hidding
Points : 574
Character : Torrent_Spy
GunZ Exp (nub/pro) :
Coding TuT 11 Left_bar_bleue90 / 10090 / 100Coding TuT 11 Right_bar_bleue

Registration date : 2009-01-15
Reputation : -2


Coding TuT 11 Empty
PostSubject: Re: Coding TuT 11   Coding TuT 11 EmptyTue Apr 14, 2009 1:25 pm

lol read this be4 on some web^^
Back to top Go down
Snake
Retired Staff
Snake


Male

Number of posts : 3572
Age : 31
Location : UK
Points : 3473
Character : Coding TuT 11 Snake11copy-1
GunZ Exp (nub/pro) :
Coding TuT 11 Left_bar_bleue99 / 10099 / 100Coding TuT 11 Right_bar_bleue

Registration date : 2009-02-02
Reputation : 27


Coding TuT 11 Empty
PostSubject: Re: Coding TuT 11   Coding TuT 11 EmptyTue Apr 14, 2009 2:51 pm

Yeah i thought he would of copyed these...
Back to top Go down
TheGod
Kore
Kore
TheGod


Male

Number of posts : 1194
Location : Behind you
Points : 1087
Character : Demantor
God
GunZ Exp (nub/pro) :
Coding TuT 11 Left_bar_bleue60 / 10060 / 100Coding TuT 11 Right_bar_bleue

Registration date : 2008-11-19
Reputation : -9


Coding TuT 11 Empty
PostSubject: Re: Coding TuT 11   Coding TuT 11 EmptyWed Apr 15, 2009 5:23 am

yes, all is copied and pasted here :p
Back to top Go down
Sponsored content





Coding TuT 11 Empty
PostSubject: Re: Coding TuT 11   Coding TuT 11 Empty

Back to top Go down
 
Coding TuT 11
Back to top 
Page 1 of 1
 Similar topics
-
» Coding TuT 7
» Coding TuT 8
» Coding TuT 9
» Coding TuT 10
» Coding TuT 12

Permissions in this forum:You cannot reply to topics in this forum
CT GunZ Server :: Basket-
Jump to: