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
2 answers

Where can I find the linker(ld) in Sun Solaris Studios 12.2?

At the moment I am using for linking purposes the pre-installed linker on my SPARC machine in the following directory: /usr/ccs/bin/ld I wanna compile my application with the Sun Studios Compiler 12.2 and so I would also like to use the linker that…
Mike
  • 71
  • 1
  • 3
1
vote
1 answer

Why does my erlang build fail with a core dump on Solaris Sparc?

(I have the answer to this already; I'm going to answer my own question so that I can share what I've learned and save someone else this trouble in the future) When I attempt to build Erlang on Solaris 10 Sparcv9, the build fails partway through: cd…
Wez Furlong
  • 4,727
  • 1
  • 29
  • 34
1
vote
2 answers

Is the jmpl and restore instruction order important in SPARC?

I read here that a jmpl instruction must be followed by nop. The SPARC V8 manual tells me that an rett instruction must always be preceded by a jmpl instruction. But, I haven't been able to find a relation between jmpl and restore instructions. I am…
SonOfEl
  • 175
  • 1
  • 10
1
vote
1 answer

Allocating memory for a struct in SPARC Assembly

I'm trying to figure out how to allocate memory for a struct in SPARC assembly. Here's the C version of my code that I'm using (which works and compiles fine): #include #include #include "test.h" int main(int argc, char…
user611105
1
vote
1 answer

Prebuilt sparc bare metal cross compiler not working

Downloaded a prebuilt cross compiler sparc-elf-4.2.2 and has set the PATH to sparc-elf-4.4.4/bin after which i ran sparc-elf-gcc -o matrixmul matrixmul.c on the terminal only to find the following…
mahesh95
  • 31
  • 1
1
vote
2 answers

Profiling a benchmark compiled for the SPARC v8 on an x86

I'm trying to make a (small) improvement to the leon3 processor (instruction set is SPARC v8) for an academic exercise. Before I decide what to improve, I want to profile a couple of benchmark programs that I want to tailor the improvements to. I…
ArjunShankar
  • 23,020
  • 5
  • 61
  • 83
1
vote
1 answer

libiconv solaris-sparc/opteron 64 bits

I have 64 bit solaris - sparc and opteron systems. Under /usr/local/lib , I can see libiconv.so for both systems. The file command on libiconv.so gives following output:- ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped,…
confused
  • 147
  • 3
  • 15
1
vote
0 answers

Not able to build Crypto module of poco-1.9.4-all on Oracle Solaris 11.1 SPARC using CC: Sun C++ 5.12 compiler

I just want to build static poco library using CC compiler v5.12 on Solaris 11 Sparc machine My poco source directory is kept here: /poco-1.9.4-all/< all modules are here like Foundation, Crypto, etc > OpenSSL headers (openssl1.1.1) are kept…
Jatin
  • 1,857
  • 4
  • 24
  • 37
1
vote
2 answers

qemu-sparc vs qemu-system-sparc

I installed CentOS 7.6 then installed all things QEMU on my machine. I have a SPARC image I need to bringing up in a VM. I've been using qemu-system-sparc. $ qemu-system-sparc -m 256 -hda solaris_v2-qemu_v2.2.0.disk -nographic -bios…
jski
  • 685
  • 6
  • 14
1
vote
1 answer

How to compile c/cpp code for target Solaris 64bit SPARC from linux/windows

I want to compile a customized Apache module for OHS on Solaris 64bit SPARC machine. It is a Apache C code. But what I have is only Windows machine and Linux VMs. Can this achieved using Oracle developer studio IDE. Or is there any other way? Please…
1
vote
1 answer

My compiled GNU GCC 9 in Solaris 10 SPARC is not working

I have successfully compiled GNU GCC-9.1.0 successfully into Solaris 10 SPARC edition OS on my Sun/Oracle SPARC server. I have had to however copy the static library files of libgmp.so, libmfr.so and libmpc.so into the following directories created…
1
vote
1 answer

Compiling tsocks-1.8 in Solaris 10 SPARC

I have a ORACLE/Sun SPARC server with Solaris 10 SPARC OS installed I am attempting to install tsocks-1.8beta4.tar.gz into Solaris However in my PuTTY terminal is the following error.... ld: fatal: library -lc not found This error is being…
1
vote
1 answer

Checking if an address is a multiple of 8 with bitwise operation in assembly SPARC

How do I check if an address is a multiple of 8 with bitwise operation in assembly Sparc?
DogDog
  • 4,820
  • 12
  • 44
  • 66
1
vote
1 answer

Is it possible to install docker on Sparc machines?

I have a M5000 Sparc server which I have installed a solaris Os version 11.3 (SunOS RT5 5.11 11.3 sun4u sparc SUNW,SPARC-Enterprise) on it. Is it possible to install docker-ce on this machine? I have tested some workaround like using MobyProject…
Vahid F
  • 377
  • 1
  • 7
  • 21
1
vote
2 answers

Processor Register - Application Variable association

I have a very simple problem. I wanna write some assembler code (for SPARC) that directly operates on a single register, called %o1. All I wanna do is to initialise this register with zero, and then increment it with some immediate values. The…
Reini
  • 39
  • 1
  • 3