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
0
votes
1 answer

Marking segments of generated sparc assembly code for inspection

Does anybody know how to insert recognizable code sequences using the Sun Studio compiler, without horribly messing up optimization? I'd like to look to see what the Sun Studio (12.1) compiler does with a bit of code in a number of instances, and…
Peeter Joot
  • 7,848
  • 7
  • 48
  • 82
0
votes
1 answer

Mount : Permission Denied

I am trying to mount a solaris sparc 5.10 dir over solaris sparc 5.11 like root> mount S5.10Machine:/mydir /mydir and I am getting nfs mount S5.10Machine:/mydir permission denied. I have given 777 permission on S5.10Machine:/mydir
Arjun Bora
  • 439
  • 2
  • 8
  • 20
0
votes
1 answer

Sparc machine basic assembly, counting bits

So I need to count bits on a integer this is my code but I don't know why is not working, I sent a hex value from c main and somehow I have to shift it and mask it. I'm kind of lost, I guess I'm getting a wrong answer because I don't know how to…
David
  • 646
  • 4
  • 14
0
votes
3 answers

Is it possible to fix Sun Solaris OS 5.8 segmention fault related to int * cast with gcc version 3.3?

Good morning, Is it possible to fix Sun Solaris OS 5.8 segmention fault related to int * cast with gcc version 3.3? The gdb variable values are shown below. The cOrderedList class member variables are shown below. The uname -a and gcc -v outputa…
Frank
  • 1,406
  • 2
  • 16
  • 42
0
votes
2 answers

what is the corresponding register in SPARC architecture for x86 CR3?

I know that in x86 architecture, I can read CR3 register in kernel context to follow page directory of kernel. now I am trying to do the same work from linux with SPARC architecture. how can I access page directory of kernel in SPARC? what is the…
daehee
  • 5,047
  • 7
  • 44
  • 70
0
votes
1 answer

Are pthread synchronization primitives (locks/barrier) safe to use on SPARC when running under RMO?

I plan to run some pthread-based parallel applications on a SPARC architecture, under the RMO memory model. I was just wondering if the pthread implementation is safe to use for such memory model, or I need to have a custom locking…
Evan
  • 1
0
votes
2 answers

Bus Error only when running on Solarix Unix Box

It compiles up and runs on my Linux box(Ubuntu) as well as other linux boxes both x86 and x64 but on a SunOS Generic_142900-02 sun4u sparc unix box, it crashes on the line matrix->col_head[i] = col_h; with a bus error, Also, when i compile it up…
KevinA
  • 619
  • 6
  • 25
-1
votes
1 answer

cmake on Solaris 10 Sparc: Configured not to use shared libraries?

I'm trying to port some software over to Solaris 10 Sparc, using GCC 3.4.6, and the software's build system uses cmake. When I run the command cmake CMakeLists.txt, I get a lot of output like this: ADD_LIBRARY for library is used with…
wkl
  • 77,184
  • 16
  • 165
  • 176
-1
votes
1 answer

Configuring Solaris 10 SPARC for internet ready connection

I have a Oracle SPARC server with Solaris SPARC 10 OS installed I have a domestic router/modem box from my ISP in my house. I have a wifi extender in my room which has a RJ45 female socket for ethernet connection. The Wifi extender is configured…
-1
votes
1 answer

"windows.h" Not Found Using Eclipse SPARC bare-C Compiler

OK, so I am trying to connect an emulated (Through TSIM) LEON3 processor to a UART terminal. If I am not mistaken I believe I need to compile a C program to enable it to talk with a terminal as I am having difficulties doing it another way. I found…
MrPhooky
  • 139
  • 1
  • 8
-1
votes
1 answer

counting the number of occurrences of the letter in a string

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…
begincoding123
  • 161
  • 2
  • 13
-1
votes
1 answer

ELF 32-bit MSB executable SPARC32PLUS

I have the below code which is extracted by using stings command. I need to edit the code and compile. But I do not have any idea how to proceed. ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 %s/CMSlog_%02d%02d.log %.20s %7d %02d:%02d:%02d …
Anish
  • 1
  • 1
-1
votes
1 answer

How does the scanf() function work in assembly code?

I am new to assembly coding and I am trying figure out how the scanf function works. I just want to take the integer of the user input and add 5 to it and print that out. I can't get it to work and this is what I have so far. I tried just printing…
Selena Gomez
  • 69
  • 1
  • 7
-2
votes
1 answer

How can I compile this program in C with Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC

Hello everyone Im triying to compile a C program correctly, but when I run the program throw the Error Ivalid Argument. Im tried to put the architecture type like -xarch=sparc or -m64 but nothing bash-3.2$ cc -c Prueba.c -o Prueba.o…
-2
votes
1 answer

Need help translating following C function to SPARC assembler

I was working on a SPARC assembly program in which I call a subroutine called power which takes a base number and multiplies the base times its self based on the exponent. Essentially just calculating a power function. My problem is I am having…
Mickey
  • 3
  • 1
1 2 3
19
20