
Every time we are faced with a computer, tablet, smartphone or laptop We found an operating system that is made up of a large amount of softwareAll these software programs have one element in common, which we know as source code and which is of great importance today.
The source codes They are nothing more than a file set which have very precise instructions that are based on the programming language, and which are used for group the different news programs that are used on a computer to ensure they run smoothly.
Given the importance of this element of computer scienceHere we'll explain a little more about it and what it is. your role on the InternetTo do this, follow this post in detail.
What is source code and what is it used for in computer science?
En the field of computer science it is known as source code to that set of text line that are expressed through a programming languageBasically, it is responsible for point out or indicate What steps must the computer follow to ensure the correct execution of each of the the installed software in it.
In other words, it is responsible for giving the instructions for the software to be grouped and transmitted correctly without causing failures or errors in the operating system.
These codes are usually visible in some software programs while they are performing certain operations. specific operationsHowever, these instructions will be poorly understood unless one is familiar with the programming language. This is a common occurrence in various other systems. web and other types of programs such as Those programmed in web languages JavaScript or HTML.
It should be mentioned that these elements have CopyrightTherefore, each of them must to be created and used exclusively by each of its programmerswhere they cannot reach be reproduced by third partiesIn this case, these tools are primarily used for what is the creation of computer programs.
What are the parts of a website or software source code?
The source code is made up of a large amount of elements which are responsible for facilitating its developmentNext, we'll show you the parts of this element so you can... freely create each of the programs in our operating system.
It is important to mention that it has three distinct sections as they are .data .bss and .text, which we explain below:
.data section
.data It is mainly used to be able to declare the constant or initialized values before the program executionIt is important to clarify that these Values are not modified during runtime.
.bss section
The use of this section is very important for the programming language, since through it they declare the variables or memory spaces whose content we can modify as needed while it is being carried out the execution of the program.
Text section
Last we have .text where the sentences will tell you to the source code What should the directive do? global _start which will tell him kernel where it should be start program execution.
Part of a ruling
In the case of the sentence of the source codes They are made up of four parts, which are: label, instructions, operating and commentsWhich we explain below:
Tags
These are placed right at beginning of the sentence and are mainly used for assign the memory value where the counter is located in that statement. In this case, the label identifiers can be found with the following characters: _, $, #, @ and ?, or in the following way: \b[a-zA-Z0-1$#@_\?]+\b
Instructions
As their name suggests, these are the instructions that tell the processor what steps to perform. In this case, they can exist or not operandosThis will depend on the instructions given. are characteristic of language being used.
Operands
These are the values required to complete the instructions. operands can be memory addresses, constants, expressions, or registers, This will depend on the instructions being executed.
Comments
we finally found the commentsThey begin with the character; and everything that is written right after this The symbol is ignored when assembling the source code. This acts like any other programming language, where its function is solely to provide a help for the programmer.
Source code and object code: What is the difference between them?
Today there are many doubts about what it is the source code and the object code, where many users often confuse these two terms even though each of them fulfills a different function. Therefore, here we are going to explain a little about the difference that exists between them.
In the case of source code is a set of sentences that are understandable to the programmer who is in charge of developing a program or only a part of it. This is usually contained in a text file which can Open in programs , the Notepad or Wordpad.
This element will be found written in a programming language like the following: Basic, C, C++, C#, Java, Perl, Python, PHPwhich cannot be read or understood by just anyone, but only by those who are familiar with this programming.
While the object code It is nothing more than a set of written instructions and data in a language that the computer understands for its execution, he can be binary or machine codeAll of this stems from what is the translation of certain source code, which may be a fragment of the final and specific program of program to be executed or in execution.
In other words, the source code It's what you write as a programmer, while the object code It is the result of the compilation that the program itself has performed, where a translation done by the language so that the computer understands it.
How can we easily view the source code of a web page?
You've probably been wondering how you can see the source code of a web page in an easy and quick way. In this case, we will teach you how to perform this process from web browsers in a very simple way, including the safari navigator where this process differs from the rest.
Therefore, follow each of the steps that we will teach you below:
View the source code using Google Chrome, Mozilla Firefox, or Edge.
- The first will be Open your preferred browserIn this case, we will work with Google Chrome, Keep in mind that this process is similar for any of these browsers.
- Now in the address bar type that website URL whom you want to meet the source code.
- Once you have entered the page right-click on it and in the drop-down menu select the option of “View source code” o "Fountain". Keep in mind that you shouldn't click on a tab or image because this option won't appear.
- Next a new one will open for you tab where you will be shown the source code of the web page.
View the source code from Safari
- The first step will be to log in to your Safari browser from your Mac.
- Now, in the top bar, click on the section for "Safari" so that the drop-down menu appears.
- From the list of options that appears on your screen, select "Preferences".
- Now click on the tab of "Advanced" located in the upper right corner of your screen.
- Now check the box “Show development menu in the menu bar” This option is located at the bottom of the window. "Preference".
- Next in the address bar Enter the URL of the page you want to view. the source code.
- Here, select the option to "Development".
- From the list of options that appears on your screen, select “Show page source.” This will allow you to learn the programming language of that website.






















