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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:49:12+00:00 2026-06-07T11:49:12+00:00

Here is a quote from the book Introduction to Assembly language about RISC (vs

  • 0

Here is a quote from the book “Introduction to Assembly language” about RISC (vs CISC)

In MIPS, we could write procedures without using the stack. For most
normal procedures, we do not have to use the stack. The availability
of a large number of registers allows us to use register-based
parameter passing. However, when we write recursive procedures, we
have to use the stack.

I am very confused about the magic with working without the stack.
Any standard program has a chain calls: Main()-> Function1() -> Function2() -> … ->

Even with lots of registers (128) the way is usual:

  1. decide which registers you should take and save their context
    (usually pushing on the stack)
  2. provide operations
  3. return registers states (usually popping from the stack)

Nobody stops us to use register-based parameter passing in CISC, especially on modern processors.
So, how is it possible to do a program con RISC without the stack?

  • 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-07T11:49:16+00:00Added an answer on June 7, 2026 at 11:49 am

    I think what they’re referring to is argument passing. In most RISC machines, arguments are passed in registers and there are generally about 6-8 registers reserved for this purpose (and one for the return value). This isn’t mandated, it’s simply convention (and is called ABI or application binary interface). So, if there are fewer arguments to the function than registers and those arguments are simple enough to fit in a register, you don’t need extra stack space to pass those arguments. On CISC machines, there aren’t so many registers for arguments, so the ABI specifies that those arguments are passed on the stack.

    Also, in RISC machines, there are many temporary registers available (specifically the callee save ones) for storing local variables. On CISC machines, local variables are generally allocated on the stack and registers are generally reserved for intermediate values.

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

Sidebar

Related Questions

Here's a direct quote from the Book (K&R, 2nd ed, p. 35): At least
I'm not quite understanding lambda functions. Here is an example function from the book
firstly, let me quote a bit an essay from Expert Python Programming book: In
Here's the line from App.Config: <add key=CheckFileFormatString value=P{0}\t&quot;{1}, {2}&quot;\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}/> Here's the code that puts
Here's the code, I don't quite understand, how does it work. Could anyone tell,
I have been reading about bit operators in Objective-C in Kochan's book, Programming in
I'm trying to extract snippets of dialogue from a book text. For example, if
I'm trying to write some dates from one excel spreadsheet to another. Currently, I'm
I'm learning Python from a book and came across this example: >>> '%f, %.2f,
This is based on the example from the book: Pro WPF and Silverlight MVVM

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.