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

Sparc Assembly Call corrupts data

I am at the moment working with some assembler code for the Sparc processor family, and i am having some trouble with a piece of code. I think the code and output explains more, but in short, this is my problem: When i do a call to the function…
Sigge
  • 31
  • 3
2
votes
2 answers

compiler warnings mixing long long int and int in printf

I have been working on a program which contains code of the following nature. printf("%lld",somelonglongint) I am however working on a sparc platform where long long is 64 bit and int and long int are 32 bit even on 64 bit builds. If by mistake a…
camelccc
  • 2,847
  • 8
  • 26
  • 52
2
votes
2 answers

Configuring GCC for the SPARC architecture

I've been trying to compile a SPARC program. Just a simple one taken straight out of the book: SPARC Architecture, Assembly Language Programming, and C: Second Edition. However, I get an error leading me to believe SPARC wasn't correctly configured…
Obicere
  • 2,999
  • 3
  • 20
  • 31
2
votes
1 answer

Replacing startup files in a bare metal embedded system

I'm using the gcc cross-compiler for the LEON2 processor (Sparc v8), however after inspecting the startup code I wanted to provide my own for various reason (we are working in space applications and the code is not up to standards and its also very…
Leo
  • 500
  • 5
  • 15
2
votes
0 answers

Is this possible? Xen on intel host running sparc guest

I'm wondering if it's possible to run a sparc/solaris guest VM under Xen on an intel based host? It would seem possible for Qemu to emulate a number of guest architectures (including sparc), therefore it looks doable yet I can't seem to find any…
Ian
  • 21
  • 1
2
votes
1 answer

Cross compiling for SPARC on x86

I've seen the about cross compilers reply at How do I cross-compile C code on Windows for a binary to also be run on Unix (Solaris/HPUX/Linux)? I would like to know how can Y compile for SPARC on a x86 machine? Where can i find a good cross…
Elad
  • 21
  • 1
  • 2
2
votes
1 answer

How to avoid insn beeing scheduled into a delay slot

I try to patch gcc so that after a fdivd the destination register is stored to the stack,i.e: fdivd %f0, %f2, %f4; => becomes fdivd %f0, %f2, %f4; std %f4, [%fp+...] I generate the rtl for divdf3 using a (emit_insn,DONE) sequence in a define_expand…
eiseled
  • 89
  • 3
2
votes
1 answer

Can I run Ubuntu Enterprise Cloud on Sun sparc servers?

I would like to deploy a private cloud using Ubuntu Server 9.10. There is a -sparc iso available here. My question is if any of the cloud packages included in 9.10 will work on sparc hardware? A search for sparc on the Eucalyptus forums yields no…
ERR0
  • 635
  • 4
  • 18
2
votes
1 answer

Compile Apache 2.4.6 in Solaris 10 in a SPARC machine (64bits) errors

I've been compiling Httpd 2.4.6 in Solaris 10 in a SPARC machine from last Monday. I get some errors that I have no idea how to fix. I've successfully compile the Httpd 2.4.6 in Solaris 10 x86, according this article: Compile Apache 2.4.2 in Solaris…
user2958812
  • 21
  • 1
  • 3
2
votes
1 answer

Why are square brackets needed in SPARC assembly ld/st instructions?

On the 32-bit SPARC architecture, both the load and store instructions (ld, ldub, ldsb, lduh, st, stb, etc.) all require square brackets around the memory address. For example, st %l0, [%fp - 4] ld [%i0], %l0 Why is this? Since the load and store…
ffhaddad
  • 1,653
  • 13
  • 16
2
votes
1 answer

Installing Jenkins on Solaris SPARC

I am trying to install Jenkins on a Solaris SPARC machine. I have Jenkins version 1.533 and the Java version 1.6.0_21. I executed "java -jar jenkins.war" to install Jenkins but got the following log and a core file was dumped. java -jar…
user2486479
2
votes
2 answers

Can 32-bit SPARC V8 application run on 64-bit SPARC V9?

I have few benchmark application complied for SPARC V8 32-bit architecture. I used them for performance evaluation of SPARC 32-bit processor. However, few application fall short of in performance. I want to test the performance with a 64-bit SPARC…
Shan
  • 5,054
  • 12
  • 44
  • 58
2
votes
1 answer

Cannot find include for limits.h when building a GCC Cross-Compiler

I want to build a cross-compiler with host type Linux x86_64 and --target=sparc-sun-solaris2.10. I have successfully built binutils with --target flag along with GMP, MPFR and MPC. I have configured Binutils and GCC to use…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
2
votes
2 answers

sparc assembly and the %y register

I am currently working with a sparc computer and I am trying to know if a number is prime or not. here is a part of the code : mov 0,%y mov 3, %l1 nop nop nop sdiv %l1,2,%l3 …
Drahakar
  • 5,986
  • 6
  • 43
  • 58
2
votes
2 answers

Makefile issues - fatal error in reader

I am having some issues with a makefile I am creating for a school project. I am compiling and assembling a C file and a SPARC assembly file (respectively) and linking them. I'm working in a Unix environment. Here is the makefile: proj09.exe:…
Serpent_wooer
  • 21
  • 1
  • 4