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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:09:09+00:00 2026-06-08T03:09:09+00:00

The original words are One reason that the distinction between process and procedure may

  • 0

The original words are

One reason that the distinction between process and procedure may be confusing is that most implementations of common languages (including Ada, Pascal, and C) are designed in such a way that the interpretation of any recursive procedure consumes an amount of memory that grows with the number of procedure calls, even when the process described is, in principle, iterative. As a consequence, these languages can describe iterative processes only by resorting to special-purpose “looping constructs” such as do, repeat, until, for, and while.

I am not familiar with C language, what about Java or C#? Is this true with them as well?
And why?

Note: I thought the author is talking about abilities of different languages. But actually it is just about different implementations of compilers.

  • 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-08T03:09:10+00:00Added an answer on June 8, 2026 at 3:09 am

    He’s basically trying to say that compilers for these languages can’t do tail recursion elimination. To make a long story short, he’s wrong (or over-generalizing anyway — I guess “most implementations” is enough of weasel wording that it could technically be sort of correct, though misleading at best). While I certainly can’t guarantee that every compiler for every other language does tail recursion elimination, there’s no question that at least some C and C++ compilers (e.g., Intel C++, gcc/g++) can and will. I haven’t checked, but given that GNAT (the Gnu Ada compiler) uses the same optimizer and such as their C and C++ compilers, my immediate guess would be that it can do tail recursion elimination as well.

    It’s been long enough since I’ve used Pascal that I can’t make an intelligent comment on it — my immediate guess would be “no”, but that has little to do with the language itself, and mostly comes down to the fact that most current use of Pascal traces back to Borland, and they never seemed to put a lot of effort into optimal code generation.

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

Sidebar

Related Questions

Is there some reason that identical math operations would take significantly longer in one
ORIGINAL (see UPDATED QUESTION below) I am designing a new laboratory database that tests
Original Question: i read that for RESTful websites. it is not good to use
Original Problem: I have 3 boxes each containing 200 coins, given that there is
I want to use Regex.Replace() to loop through a string containing words that are
I have a one-to-one unidirectional relationship between a Booking object and an Address object
I need a count down timer that can display second:miliseconds format, I found one
I have a view that displays a table: rows represent days - one row
I've inherited a (Microsoft?) SQL database that wasn't very pristine in its original state.
Is there a way to merge two exe files into one, programmatically, so that

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.