Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3317872
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:38:17+00:00 2026-05-17T22:38:17+00:00

While doing some reading, I came across the terms Intermediate Language and 3AC. IL,

  • 0

While doing some reading, I came across the terms “Intermediate Language” and “3AC”.

IL, as I understand, is the middle “step” in the source code compilation process. More specifically, I’m reading about bytecode (Java) and C.

The way I interpret it (correct me if am wrong) is;

Source Code 1 (ex. Lisp) ->
Intermediate Language (C) -> Assembly
Language -> Machine Code

Source Code 2 (ex. Java) -> Bytecode
-> Java Virtual Machine

So based on that, am struggling to see where does The Three Address Code (TAC/3AC) comes into play, and what for its used.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:38:18+00:00Added an answer on May 17, 2026 at 10:38 pm

    Three-address code (TAC) is the intermediate representation used in most
    compilers. It is essentially a generic assembly language that falls in the lower-end of the
    mid-level IRs. Some variant of 2, 3 or 4 address code is fairly commonly used as an IR,
    since it maps well to most assembly languages.

    A TAC instruction can have at most three operands. The operands could be two operands
    to a binary arithmetic operator and the third the result location, or an operand to
    compare to zero and a second location to branch to, and so on. For example, below on
    the top is an arithmetic expression and on the bottom, is a translation into TAC
    instructions:

    //Expresion
            a = b * c + b * d;
    //3AC
            _t1 = b * c;
            _t2 = b * d;
            _t3 = _t1 + _t2;
            a = _t3;
    

    Source: http://web.archive.org/web/20151010192637/http://www.dound.com/courses/cs143/handouts/17-TAC-Examples.pdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just installed the 3.5 .NET Framework and while doing some cleaning I've notice
I'm doing some searching of tags, and some users like cat while others like
I am fairly new to programming and while doing a lot of reading this
I've been doing some reading on mysqli_real_escape_string(), and, after getting my content properly escaped,
I am doing some research on Unicode for a white-paper I am writing. Does
How does PHP handle client connection while doing sleeps? Or put another way ...
I've used strpbrk() occasionally while doing low-level string work in C, but I've never
I'm doing a basic homework assignment which looks like this: While input <> -1
A long while back I transitioned to doing all my web application development in
A while ago I was trying to figure out a way of doing this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.