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

What does the following assembly does for the following .c file

I have written the following code, can you explain me what does the assembly tell here. typedef struct { int abcd[5]; } hh; void main() { printf("%d", ((hh*)0)+1); } Assembly: .file "aa.c" .section ".rodata" …
Invictus
  • 2,653
  • 8
  • 31
  • 50
4
votes
1 answer

64-bit vs. 32-bit performance on SPARC hardware with the 1.6 JVM

I'm doing performance tuning for our Tomcat cluster running on SPARC hardware. The 32-bit JVM gives us sufficient memory for now, but we are going to start using Terracotta for server striping so the extra memory the 64-bit JVM offers could be…
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
4
votes
2 answers

How do I refer to a global variable in a dynamically linked library?

The environment is Solaris on 32bit SPARC, but I think this is a more general issue with dynamic linking and/or position independent code. I have an assembly program that I compile as position independent code and dynamically link to it from a C…
Venti
  • 71
  • 5
4
votes
0 answers

Clang: generated .o file incompatible with elf64-x86-64

I am trying to cross compile with clang and run Undefined Behavior Sanitizer for .c file Command I am running clang -target sparc -integrated-as -fuse-ld=lld -fsanitize=undefined test1.c clang is the cross compiler sparc is the target architecture.…
suyashsingh234
  • 189
  • 1
  • 2
  • 12
4
votes
2 answers

How is an annulled branch different from a regular branch?

For SPARC Assembly particularly, how are annulled branches different from regular branches? I always thought that annulling branch instructions is required when I need to fill the nop delay slot for branch instructions. However, I don't think I'm…
codingbear
  • 14,773
  • 20
  • 48
  • 64
4
votes
2 answers

Boost+CMake: no suitable build variant

I am trying to deploy some libraries on embedded SPARC-like machine for project in which I involved. I successfully built bleeding-edge Boost library on this machine and installed it into /util directory. Then I tried to write simple tester script…
Andrei Vukolov
  • 118
  • 1
  • 10
4
votes
3 answers

Running JAVA on Windows Intel vs Solaris Sparc (T1000)

Hi I'm trying to test my JAVA app on Solaris Sparc and I'm getting some weird behavior. I'm not looking for flame wars. I just curious to know what is is happening or what is wrong... I'm running the same JAR on Intel and on the T1000 and while on…
user432024
  • 4,392
  • 8
  • 49
  • 85
4
votes
0 answers

Apache 2.4.10 hangs AH00485: scoreboard is full, not at MaxRequestWorkers

Apache server will stay up for random amount of time, usually days, but eventually enters a hung state. When hung the CPU load gradually spikes on the machine and new web server requests are unresponsive. Error logs typically contain lots of…
Mark Jacquet
  • 41
  • 1
  • 4
4
votes
1 answer

How to get high resolution time using sparc assembly?

I use syscall SYS_time, but its resolution is 1 second. Is there any other solution?
programmer
  • 41
  • 2
4
votes
1 answer

What is SPARC and what makes it different from everything else?

I am currently studying computer science, and one of my required courses covers "computer organization and architecture" - or, in other words, an introduction to assembly language. This particular course uses the SPARC language, because the…
user1696230
4
votes
1 answer

Multithreaded inline assembly

I'm trying to create a large number of sha256 hashes quickly on a T4 machine. The T4 has a 'sha256' instruction which allows me to calculate a hash in one op code. I created an inline assembly template to call the sha256 opcode: in my c++…
Mustafa Ozturk
  • 812
  • 4
  • 19
4
votes
1 answer

Proper G1 GC tuning for sparc T4 8-core

my application is deployed on a weblogic running on Solaris, on a dual SPARC T4 8-core 3.0 GHz. This weblogic instance is using g1 gc and I think it's possible to improve the current configuration: GC_OPTIONS=" -server -XX:ConcGCThreads=4…
César Varona
  • 61
  • 1
  • 6
4
votes
2 answers

Why the %r0 of SPARC or MIPS, is always 0?

I know that when you read %r0 in SPARC CPU (and MIPS), always return 0, but I like to know Why ? What design decision is behind this and why ?
Zardoz89
  • 590
  • 5
  • 17
4
votes
2 answers

Unable to install Image::ExifTool due to 'make test' hanging

I have a Netgear ReadyNAS NV+ on which I'm trying to do some things using perl. Since the perl installation from the vendor is compiled without the uselargefiles-flag I've tried to compile/install my own version to run in parallell with the system…
azzid
  • 371
  • 2
  • 8
4
votes
1 answer

How to write Sparc assembly and run its binary in Qemu or Simics?

I am trying to start writing some Sparc assembly, but I can't figure out how to assemble and run the code. I have written arc with arcTools, but that's as far as I have gone with assembly. I have downloaded both simics and qemu, but I don't know…
user1078516
1
2
3
19 20