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 9064417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:14:48+00:00 2026-06-16T16:14:48+00:00

From Thinking in C++ – Vol. 1 : Interpreters have many advantages. The transition

  • 0

From Thinking in C++ – Vol. 1:

Interpreters have many advantages. The transition from writing code to
executing code is almost immediate, and the source code is always
available so the interpreter can be much more specific when an error
occurs
.

Interpreter always works directly on the source code (after translating it line by line into machine code) so that may be the reason that it can be much more specific when an error occurs.

From: What does it mean to say that the source code is always available to interpreters?

speed is one criteria to use interpreter. and yes, it can directly refer to source code when error occurs. but when run-time runs compiled code, it can’t refer to exact line where error occured.

Now, what about the debuggers?
GDB works on the output produced by the compiler, so here GCC and GDB have same files to work on.

Why is GDB able to show the exact error on the exact line (during run time) then as compared to the compiler?

  • 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-06-16T16:14:50+00:00Added an answer on June 16, 2026 at 4:14 pm

    Why is GDB able to show the exact error on the exact line (during run time) then as compared to the compiler?

    These are two different softwares with different purposes. First you should understand this.

    so here GCC and GDB have same files to work on

    Not exactly, Debugger needs some more files generated during compilation. (called symbols). These symbols are bridge between compiled code and source code.

    I’m not much sure of GCC but it should have debug and release build options.
    When you compile in debug mode, by default symbols are generated that help GDB to debug. but in release mode, be default symbols are not generated and GDB can’t debug a release build.

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

Sidebar

Related Questions

From Thinking in C++ - Vol. 1 : Interpreters have many advantages. The transition
I have this code here. (this code was taken from Thinking in Java 4th
From couple of days i am thinking of a following scenario Consider I have
I have been thinking of a way to export data from SQL to Excel.
I'm thinking of writing an app to selectively transfer photos/music to and from my
Here is some code copied from Thinking in C++ Vol1 Chapter 10. #include <iostream>
I was thinking about extending all my controllers from the indexController. I have in
I'm trying to make the following exercise from Thinking in C++ Vol 2, witch
This is a test about thread priority. The code is from Thinking in Java
The code below was copied from Bruce Eckel's Thinking in C++ Volume 2 Chapter

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.