-1

I am trying to count the number of occurrences of the letter in a string within a SPARC machine.But I cannot seem to find the way to code this problem. How can I get started? Here is an example:

   Enter a string: stackoverflow

   The letter o appears 2 times
begincoding123
  • 161
  • 2
  • 13
  • The best way to get started is to write some pseudo code and then turn that into assembly. Another great suggestion is to actually show up for class. :) – David Hoelzer Jul 21 '16 at 13:00

1 Answers1

1

Probably this book will help you. Also you can write this program in C and watch the assembly generated by compiler. Something like gcc t.c -S. Also there are the Sparc v9 manual. And another helpful thing - SPARC Assembly Language Reference Manual.

alexanius
  • 402
  • 2
  • 11