Index:
UPDATED ✅ A source code is the lines of text where the orders that a computer must execute are expressed ⭐ ENTER HERE ⭐ and Learn more about the subject
Every time we are in front of a computer, tablet, smartphone or laptop we find an operating system that is made up of a large amount of software. All these softwares have a common element which we know as source code and that is of great importance today.
the source codes they are nothing more than a file set that have very precise instructions that are based on the programming languageand which are used for group the different news programs that are used on a computer for them to run smoothly.
Considering the importance of this computing elementhere we are going to explain a little more about it and what it is your role on the internet. To do this, follow this post in detail.
What is a source code and what is it for in computing?
In the computer science area is known as source code to that set of lines of text that are expressed through a programming language. It basically handles point out or indicate What steps must the computer follow to carry out a correct execution of each of the installed software in the.
In other words, it takes care of giving the instructions so that the software is grouped and can be transmitted correctly without producing failures or errors in the operating system.
In general, these codes are usually visible in some software while performing some determined operations. However, these instructions will be poorly understood unless the language with which it was programmed is handled. This is the same thing that often happens in the different websites and other types of programs like those programmed in JavaScript or HTML web languages.
It is worth mentioning that these elements have Copyrightso each of them must be created and used exclusively by each of its programmerswhere they cannot reach be reproduced by third parties. In this case, these tools are mainly used for what is creating computer programs.
What are the parts of a web or software source code?
The source code is made up of a large number of elements which are responsible for facilitating its development. Next, we are going to show you what the parts of this element are in order to freely create each of the programs of our operating system.
It is important to mention that it has three different sections as they are .data .bss and .text, which we explain below:
.data section
.data It is mainly used to be able to declare constant or initialized values before program execution. It is important to clarify that these values are not changed at runtime.
.bss section
The use of this section is very important for the programming languagesince through it they declare variables or memory spaces whose content we can modify at convenience while it is being carried out program execution.
.text section
Last we have .text where the sentences that will tell you to source code what to do they must have the directive global _start which will tell the kernel where should start program execution.
part of a sentence
In the case of the judgment of the source codes They are made up of four parts which are: label, instructions, operand and comments. Which we explain below:
tags
These are placed right at start of sentence and are mainly used for assign memory value where is the counter in that statement. In this case, the label identifiers can be found with the following characters: _, $, #, @ and ?, or as follows: b[a-zA-Z0-1$#@_?]+b
Instructions
As its name indicates, they are those that tell the processor what steps to perform. In this case they can exist or not operandsThis will depend on the instructions given. These are characteristic of the language that is being used.
Operands
These are the values needed to be able to complete the instructions. These operands They may be memory addresses, constants, expressions or registers, this will depend on the instructions being executed.
Comments
we finally found the commentsthey start with character ; and everything that is written right after this symbol is ignored when assembling the source code. This acts like any other programming language, where its function is only to provide you with a help the programmer.
Source code and object code, how are they different?
Today there are many doubts about what it is source code and object code, where even many of the users tend to confuse these two terms even though each one of them fulfills a different function. Therefore, here we are going to explain a little about the difference between them.
In the case of source code It’s about a statement set that are understandable by the programmer who is in charge of developing a program or only a part of it. Usually this is contained in a text file which can be open in programs What notepad or Wordpad.
This element will be written in a programming language like the following: Basic, C, C++, C#, Java, Perl, Python, PHPwhich cannot be read or understood by anyone, but only by those who know about this programming.
While the object code is just a set of written instructions and data of a language that understands the computer for its executionthe same can be binary or machine code. All this comes from what is translation of certain source codewhich may be a fragment of the final program and specific to the program to execute or running.
In other words, the source code is what you write as a programmer, while the object code is the result of the compilation that the program has carried out as such, where a previous translation made by the language so that the computer understands it.
How can we see the source code of a web page easily?
Surely you have been wondering how you can do to be able to see the source code of a web page of an easy and fast way. In this case we will teach you how to carry out this process from web browsers in a very simple way, including the safari browser 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 thing will be open your preferred browserin this case we will work with Google Chrome, Note that this process is similar for any of these browsers.
- Now in the address bar type that webpage url who you want to meet the source code.
- When you have entered the page right click on it and select the option from the drop-down menu. “View source code” either “Font”. Keep in mind that you should not click on a tab or image because this option will not appear.
- Next a new one will open tab where it will be shown the source code of the web page.
View the source code from Safari
- The first thing will be to enter your safari browser from your Mac.
- Now in the upper bar click on the section of “Safari” to bring up the dropdown menu.
- In the list of options that appears on the screen, select “Preferences”.
- Now click on the tab “Advanced” located in the upper right corner of your screen.
- Now check the box “Show development menu in menu bar” This option is at the bottom of the window. “Preference”.
- then in the address bar enter the url of the page you want to see the source code.
- Here select the option “Developing”.
- In the list of options that appears on the screen, select “Show page source code”. This will allow you to know the programmed language of said web page.
Computing