Position of code generator in compiler

This is the last stage of the compiler. The input code generator is an intermediate representation of the source program, while the output is the equivalent target program.

The position of the code generator in the compiler is as follows:

  • Code generator
  • Symbol table
  • Code optimizer
  • Source
  • program
  • intermediate
  • code
  • intermediate
  • code
  • Target
  • program
  • Front end

Code generator requirements:

The output code must be correct and of high quality, that is, it must use the resources of the target machine effectively
must be efficient.


Although it really depends on the target machine and operating system, the important problems in code generation are:

  • Input for code generator
  • Program targets
  • Memory Management
  • Instruction Selection
  • Register Allocation
  • Selection Order Evaluation
  • Code Generator Approach


The input consists of an intermediate representation of the source program generated by the front-end, along with information in the symbol table that is used to determine the run time address of the data object in the intermediate representation.

It is assumed that before code generation, the front-end has to scan, parse, & translate the source program into a detailed intermediate detail representation.

In addition, type checking is also carried out on the above assumptions, so that type-con-version operators can be inserted where necessary and semantic errors have been detected.


Target program by the code generator that meets, the form is:

  • Absolute Machine Language
  • Relocatable Machine Language
  • Assembly Language

Absolute machine language: has the advantage that it can be placed in a fixed location in memory and can be executed directly.

Example :

a number of “student-job” compilers,

like WATFIV and PL/C

Relocatable Machine Language (Object Module): allows subprograms to be compiled separately (flexibility). A set of object modules can be linked/loaded together on linking-loader execution (requires extra effort)

Assembly Language: the advantage is that there is an easy code generation process for generating symbolic instructions and using macro facilities from the assembler to generate code.


Mapping names to addresses of data objects in run-time memory that runs together with the front-end and code generator.

It is assumed that the three-address statement references the name to the symbol-table entry.

The type in the declaration specifies the width (amount of storage) required for the declared name.


Uniformity and completeness are important factors, as are instruction speed and machine idioms.

Example :

Three-address statement, of the form:

x := y + z

where : x, y, z allocated statically can be translated into the following code sequence:

MOV y, R0/* load y to register R0 */

ADD z, R0/* add z to R0 */

MOV R0, x /* store R0 into x */

However, statement-by-statement often results in bad code. Example of a sequence of statements

a := b + c

d := a + e

can be translated into:

MOV b, R0

ADD c, R0

MOV R0, a

MOV a, R0

ADD e, R0

MOV R0, d

Here the third and fourth statements will be redundant, as will the third statement if a is not used sequentially.


Instructions involving register operands are usually shorter and faster than those involving operands in memory.

Therefore, efficient use of registers is very important to generate good code.

The use of registers is divided into 2 sub-problems:

1. During register allocation, the variables that will remain in the register are selected at some point in the program

2. During register assignment, a special register is taken where the variable will be assigned.

Finding the optimal assignment of registers to variables is difficult, even with single registers.

Mathematically, this problem is NP-Complete.


The order of computations can affect the efficiency of the target code. Some computational sequences require fewer registers to hold intermediate results than others. Taking the best order is the NP-Complete Problem.


The most important criterion is to produce good code.

The design objectives are:
easy to implement
easy to test
easy to maintain

How To Get Facebook Generator Code By Email

How to get security code from Facebook via email? My cell phone number has expired, so I can’t receive security code SMS, is there any other way than via SMS? Find the answer here. Please use the table of contents below to go directly to the topic you want.

In several previous posts, we have mentioned that today’s Facebook is not only social media. Moreover, it can be used as a medium to make money. You can open an online store and then sell products, live streaming games and then get paid by Facebook.

We have discussed everything in the article how to make money from Facebook. Please read the link so that you can immediately use Facebook to make money.

Continuing to the main discussion, can the generator code or security code from Facebook be sent to email? The answer… depends.

Yes. The answer depends on the condition you are experiencing.
Login Condition but Failed to Confirm Mobile Number

If your condition is that you always fail to receive a security confirmation code via your cellphone, then you can send a 6-digit PIN via email.

Quoting from the official Facebook page here, here are the steps so that the security code can be sent via email.

  1. Re-confirm your cellphone number. Who knows the security code does not enter the cellphone because of the wrong number.
  2. Resend security code. Did it arrive? Otherwise, move on.
  3. The last step is that you just open this link, then choose the wrong number. Then enter your email address.
  4. Finished.

Logout Conditions and Phone Numbers Haven’t Been Changed

If your condition is logged out of Facebook, then unfortunately the cellphone number linked to the account has not been changed (Facebook automatically sends a security code to the old number), then sending the security code via email cannot be done.

Why? Because you are not logged into the account. So the only way is to confirm your identity via Facebook’s customer service.

Here’s how:

  1. Go to the Facebook help page here.
  2. Upload some of the ID scans Facebook asks for.
  3. Enter the old email that is linked to the Facebook account, then enter the new email that you can still contact.
  4. Wait to hear from Facebook. Usually a bit long.
  5. Finished.

Account Condition Hacked

If your account is hacked, you automatically don’t have access to your Facebook account. Can the hacker change his email and cellphone number, right?

Well, for this, you can report to Facebook that your account has been hacked. This is how…

  1. Go to the hacked Facebook page here.
  2. Click the double my account button.
  3. Enter the email and password that is linked to the Facebook account (just enter it as you remember, although it may have been changed by hackers).
  4. Fill in all the information Facebook asks for. Usually about full name, profile URL, problem type, cellphone number, etc.
  5. Upload a scan of your identity card.
  6. Wait for confirmation from Facebook via email or SMS. Usually after that you will be asked to take a selfie while holding an identity card, to confirm authenticity.
  7. Wait for Facebook to call back.
  8. Finished.

FAQ Recovering Facebook Account

How to get facebook generator code via email?

The trick, you have to reconfirm the cellphone number first to make sure that the Facebook system is having problems, so you want the security code to be sent to an email. After it is confirmed that you did not get the security code to the SMS, there will be an option for the code to be sent via email only.

My Facebook has been logged out, while my cellphone number has not been changed, how can I log back into my Facebook account?

If that’s the case, then you can’t send the security code to the email because you can’t confirm the cellphone number first. So the only way is to upload a scan of your identity card, then report it to Facebook.

My Facebook has been hacked, what should I do?

Facebook provides a special page to report hacked accounts. This: https://facebook.com/hacked/ there you are asked to fill in some information and also asked to upload an identity card to confirm ownership. After that, wait for Facebook to contact you.

That’s how to recover your Facebook account, whether it’s because you failed to receive the security code via SMS, and then want the code to be sent to your email; or because of other problems. We adapted this method from the official Facebook page and then we rewritten it in a language that we hope is more understandable. If it is not complete, please discuss below.


Welcome to Free Gift Card Generator

Welcome to our unique and premium gift code site. We offer a collection of gift cards from various brands. Our online gift card generator could produce Google, Amazon, Stream, Xbox and many more gift cards like nothing else on the market. Gift cards allow the free purchase of products equivalent to the value specified on the gift card. Personal purchase on the side, this is an amazing gift item. Gift card recipients can get anything they really want with a gift card.

The only free gift card generator code!

You won’t find another platform like ours in the free gift card room. We created this site with just one goal – to give users a free gift card code without the need to buy it. Of course, creating this free gift card code generator to get a free gift card is not a piece of cake, but we managed to keep the promise. It takes a lot of failure and testing to come out with native software that performs tricks safely and comfortably. Keep in mind that we don’t throw hack gift codes on your face. Our generator provides unused and legit code that works 100% of the time by scanning the web for a list of unused gift codes.

Easy option to get free gift cards!

Unlike the competition, we don’t yet have the advanced process of getting a free gift card On our site, you simply select the code by clicking on the option you want and let the system generate the free code in minutes. Even an eight-year-old can use our site like a breeze. Better yet, we won’t ask you anything about your financial information. In addition, you don’t need to download anything. You just have to prove that you are human and not an automated bot created by hackers who break the rules of getting free gift cards without throwing arms and legs. Bots have created havoc in the past, so we have these extra steps to ensure they remain under scrutiny. Our free gift card code generator verifies each gift code before sending it. If you can’t follow the instructions above, check the entire process in the action below:

-Click the desired Gift Card Icon (for example; Amazon, Steam, Xbox, PSN, Google play etc…)

-Select the Denominational Gift Card you want to receive

-Click the ‘Generate’ button for our software to perform its magic

– Complete fast and hassle-free human verification tasks

-Bingo! Indulge in a Free Gift Card.

What are you waiting for?

Currently, we provide dozens of codes every day. So, be sure to grab them today or you may have to wait tomorrow if we run out of them for the day. Our gift card generator is 100% free for now. So, you don’t have to spend money or scavenge the web to get free gift cards anymore. We want you to enjoy your free gift code without the hopeless struggle that is generally involved in securing a legitimate gift code. Also, don’t forget to spread the value by sharing a free gift card code generator with residents who really deserve to know it.

Reedem Voucher Free Google Play Code 2021

Hello Buddy viral okay, this time we back with a post handing out vouchers google play code free 2021.

Who does not want to get a free google play voucher code that is given for free the latest free google play code.

We will share the newly purchased google play voucher code to give to the lucky ones, giveaway this time will be given for free.

Many posts about this google play voucher code if you search for it on google but rarely successful or usually the code has been forfeited and can not be redeem anymore.

Many people are trying to get google play redeem code for free, many very creative ways such as free google play code generator.

How to Get Google Play Redeem Code For Free

By using google play code generator you can regenerate the code and get a new redeem code that can be reclaimed.

the latest free google play code that is certainly still working to be used and can redeem google play vouchers so that you will get a free google play balance.

Free google play code that has not been used can also be used to get free google play code, because it is still not in redeem so it can still be claimed.

There are also those who do hacking against other people’s google play accounts to get their google play balance for free, but this way can only be done by experts.

Google play reedem code is usually not shared easily unconditionally, usually you can get free google play codes from certain events and there are also live streamers who share google play gift card codes for free.

Usually voucher google play code with certain conditions such as having to follow give likes, subscribe and many more ways done by them to attract popularity.

Anyway with the lure of free google play voucher codes they will gain popularity.

On this occasion the free google play code voucher is distributed unconditionally and mind other you can immediately redeem and of course free.

This free google play redeem code can be used to top up online games such as UC Pubg Mobile, Diamond Mobile Legends, Free Fire, COD Mobile and also top up other online games.

google play free fire code is usually searched by FF players or garena free fire, to get diamonds and buy game items and also weapon skins.

You can also use this free google play code to buy books or premium applications, and can also save your google play balance for future purposes.

How to Redeem Free Google Play Code

How to redeem this free google play code is not the way to redeem the code as usual, it’s just that to get the code for free:

  • Open your google play app.
  • Click the 3 line mark located to the left of the search box / google play menu.
  • Then select the tab Payment methods / Payment Methods.
  • Then select Redeem code, and enter the redeem code.
  • Press Redeem, if successful then your google play balance will increase.

Well, that was a way to redeem free google play code. The trick is quite easy isn’t it, where’s the code min? well continue scrolling down, it’s time to share the code.