Thread: C code understandings conversion to assembly (MIPS)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,665
    Write recursive and non-recursive versions of some functions and count for yourself.

    You want to understand - write some code!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  2. #2
    Registered User
    Join Date
    Jan 2024
    Posts
    25
    Quote Originally Posted by Salem View Post
    Write recursive and non-recursive versions of some functions and count for yourself.

    You want to understand - write some code!
    I understand but I already wrote the code for loop solution and recursive solution above , so then what next step shall I do for proving what you're suggesting that recursive call counts same as for loop iterations counts?
    you know we are talking about "n" number so cant count .. it might be that n very huge number yeah ..it's integer ..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ to MIPS Assembly: how to approach
    By primoriscruor in forum C++ Programming
    Replies: 3
    Last Post: 11-29-2012, 08:46 AM
  2. MIPS Assembly Bubble Sort
    By cornfeller in forum Tech Board
    Replies: 17
    Last Post: 06-16-2012, 08:09 PM
  3. convert c programm to mips assembly
    By mariakat in forum Tech Board
    Replies: 8
    Last Post: 02-14-2011, 08:39 PM
  4. Converting C into MIPS Assembly
    By clag in forum C Programming
    Replies: 5
    Last Post: 02-13-2010, 07:48 PM
  5. A question of the MIPS assembly program
    By ok_good in forum Tech Board
    Replies: 0
    Last Post: 05-03-2006, 10:13 PM

Tags for this Thread