Questions tagged [sparc]

SPARC(Scalable Processor Architecture) Sun Microsystems's specific CPU.

SPARC is a RISC instruction set architecture (ISA) developed by Sun Microsystems (now merged into Oracle), introduced in mid-1987.

SPARC hardware often runs Solaris, the Unix operating system, but other OSes run on SPARC hardware, and runs on more than just SPARC hardware.

SPARC doesn't allow unaligned loads, so SIGBUS (bus error) faults are a common problem when porting C or C++ to SPARC from x86 (for example).

In assembly, SPARC's 32 architectural registers are a sliding window onto a virtual register file. The save instruction that slides the window might or might not spill to memory, depending on whether the CPU microarchitecture is out of registers when it runs.

287 questions
1
vote
1 answer

Allocating space in assembly (Insert function)

I'm working on an assembly equivalent to an insert function and I was wondering how exactly i would space the elements of the list so I can fit my data in there. I have found the correct address for where my information should be inserted, but I am…
1
vote
2 answers

how to install tcl on solaris sparc

I have a solaris machine configuration: SunOS indevel07 5.10 Generic_147440-15 sun4v sparc sun4v. I am trying to install expect utility on this. expect utility requires tcl to be installed. I have tried to install that too, but i am getting errors.…
Mrunal Gosar
  • 4,595
  • 13
  • 48
  • 71
1
vote
0 answers

SPARC using scanf() to read characters

Alrighty here's my problem. I am trying to take a character from a users input using scanf() and print it back out to them in SPARC Assembly. This code is simpler than what I am actually trying to do but it is the thing I am hung up on. It works…
1
vote
1 answer

Char Array conversion from C to SPARC

Consider the C source code statements shown below. struct person { char name[30]; int id; int points; }; char Fmt[] = "Name: %s ID: %d Points: %d\n"; void display_one( struct person List[], int I ) …
1
vote
0 answers

8/16/32/64 bit aligned lossless compression of .bss and .data for embedded system core dump

I'm looking for a fast / lossless / fix spaced compression algorithm for the following task. I have an embedded system. Low memory / flash resource. I want to generate a core dump for it and store the result in flash and / or suck it out over a slow…
John Carter
  • 460
  • 3
  • 10
1
vote
1 answer

Is it possible to write a QT C++ project on an Intel machine that produces a binary for Solaris SPARC?

Is it possible to write a C++ application on Intel that produces an executable binary for Solaris SPARC architecture using QT? I have downloaded QT 4.7.4 and opened some of the demo projects like "Address Book Example" and performed a build /…
user1068636
  • 1,871
  • 7
  • 33
  • 57
1
vote
0 answers

Installation of java 1.6.31 on a sun solaris 8

I have installed java 1.6.0.31 on a Solaris 8 Sparc but when I enter the command : Ingres > java -jar Monitor.jar c Exception in thread "main" java.lang.StackOverflowError at sun.font.FontManager.getDefaultPhysicalFont (Unknown Source) at…
user461487
1
vote
1 answer

Converting C function to assembly

Hi i am trying to convert this C function that I wrote to assembly code(SPARC arc)but keep getting a segmentation fault(core dumped) error. The function is supposed to convert a string to a long value. I know I did the C function correctly as I have…
Crooked-I
  • 27
  • 1
  • 2
0
votes
1 answer

Implementation inline assembly of compare and swap function for Sparc V8

My gcc cross compiler doesn't support Built-in functions for atomic memory access. How i can implement the following function, using inline assembly for Sparc V8 architecture: long __sync_val_compare_and_swap (long *ptr, long oldval long…
G-71
  • 3,626
  • 12
  • 45
  • 69
0
votes
1 answer

SLL on a double word in SPARC?

Is there a way that I can do a left logical shift on a double word in SPARC assembly? I have: ldd [%fp - 8], %l0 to load the 64bit memory address. Note that this is not an integer, merely a sequence of bytes, so the left logical shift is not acting…
Luke Cycon
  • 648
  • 4
  • 12
0
votes
2 answers

How to find minimum and maximum of array of ints in assembler (SPARC)?

I have to write an assembly program that will find the minimum of array of ints (fed into the program from C as a pointer) Can anyone tell me how to do it ? or at least how to store/access the array in assembler ? Normally the variables are…
Patryk
  • 22,602
  • 44
  • 128
  • 244
0
votes
1 answer

Memory Address of C Variables

this is my quiz question (warning, lengthy): Given the following program, reorder the printf lines so that the values that are printed are sorted from smallest to largest if compiled and run on a Sun SPARC architecture. These lines print out the…
lordmarinara
  • 267
  • 5
  • 15
0
votes
1 answer

Why do I get "illegal operand" errors when compiling SPARC assembly with GCC (2 lines, cmp and bl instructions)?

GCC complains that: A3.s: Assembler messages: A3.s:32: Error: Illegal operands A3.s:33: Error: Illegal operands The offending lines (italicized) and surrounding code are: b random_init_for_test nop random_init_for_test: **set 0, i_s cmp i_s,…
0
votes
3 answers

Translating simple C code

So I'm working on an assignment for my computer science course, We have to take an algorithm thats written in C and replicate it in assembly (SPARC). My issue is that I know very little C code since I specialize in java. Can anyone help me look at…
AlbChu
  • 135
  • 1
  • 2
  • 11
0
votes
1 answer

Error when compiling simple SPARC ASM math code

Writing SPARC asm code to evaluate a hardcoded statement, but I'm getting an error I don't understand. I've searched all over, and while it seems to come up a lot in some bug reports out there, there's no real clues that I've found for programmers.…
Justin Reeves
  • 1,148
  • 10
  • 24