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

Simple assembly example : set inputs and get output - right syntax

I try to do a simple example to insert, into a C code, a piece of Sparc assembly 32 bits; this little code performs an incrementation on the variable "sum". The code is : #include #include #include int n; int…
user1773603
0
votes
2 answers

SPARC register names to binary

So in SPARC V8, the destination register (rd) occupies 5 bits of the instruction (25th-29th). My question is: is there a document with map associating each register name, say %i1, to its respective 5-bit binary, say, 01010? I can't find such…
BVCGAAV
  • 301
  • 1
  • 4
  • 11
0
votes
1 answer

incorrect interface name obtained from SIOCGIFCONF & SIOCGIFADDR for virtual interface in solaris sparc

I have a program that gets the list of interfaces, including virtual interfaces, in solaris machines(x86 & sparc). I use the following codes to get it. // create socket int fd; if ((fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP)) < 0) return…
kuarissu
  • 15
  • 6
0
votes
1 answer

Sparc V8 RTOS Query

In the Sparc V8 architecture we have some N register windows. Generally an RTOS during context switching pushes and pops registers. Is it possible( or already has been done) to use each of these register windows as one of the thread. This will make…
zephyr0110
  • 223
  • 1
  • 11
0
votes
1 answer

QEMU SPARC VM - SCP to localhost

I have to use QEMU VM to emulate SPARC. I've been trying to SCP my finished assignment to my localhost, but I seem to be unable to. Whenever I try: scp assignment6.zip user@ipv4address:~/ I get this error: ssh: connect to host ipv4address port 22:…
RMH
  • 1
  • 2
0
votes
2 answers

Sparc Function compilation alignment

I want my program such that each function in the binary has some space left after it ends. So that later if some minor change is required only that function is changed with the extra space acting as room for accounting the minor change.…
zephyr0110
  • 223
  • 1
  • 11
0
votes
1 answer

How to access the element inside a struct contained in a struct in SPARC assmebly?

struct big{ struct small; } struct small{ int a; int b; } If I pass in the pointer to big, and try to use ld [%i0], %l0 to access the struct big, then how to access the variable a? Can I use ld [%l0 + OFFSET], %l0 to get it? It seems…
Patroclus
  • 1,163
  • 13
  • 31
0
votes
1 answer

offset of a pointer in a struct, and how to get the value in assembly

Suppose there's a struct struct info{ struct stat information; char * filename } Then I set the offset of filename pointer size_t fOffset = offsetof(struct info, filename); now what is the fOffset? And in the SPARC assembly, I want to get the…
faker
  • 5
  • 2
0
votes
2 answers

Running a VM with Solaris OS (Sparc Architecture) on a Intel x86 Processor resolve little Endian to big Endian?

I'm currently working with Sparc V8 architecture Atmel based boards. So, for unit level testing, i'm doing in on my linux machine (Intel x86). Since, x86 is a little endian machine where as Atmel Processor is a big endian processor, all my memory…
0
votes
1 answer

RTEMS Not Building?

I am trying to get RTEMS to compile via the directions listed at: https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start I have used the "RTEMS Source Builder" to produce a cross compiler suite for the SPARC…
MrJman006
  • 752
  • 10
  • 26
0
votes
1 answer

Memory - Natural address boundary

Definition Structure padding is the process of aligning data members of the structure in accordance with the memory alignment rules specified by the processor. what is the memory alignment rule for Intel x86 processor? As per my understanding,…
overexchange
  • 15,768
  • 30
  • 152
  • 347
0
votes
2 answers

SPARC Assembly Scanf Error

I've attached my code to this post. However, when I run it on gdb, once it scans the first number and second number, it gives me a "Program received signal SIGSEGV, Segmentation fault." error. I would appreciate any help to correct this. Thank…
0
votes
1 answer

Segmentation Fault ( core dumped ) with the command bash

I'm using SUN Solaris-8 and i tried to install an application to run it into : i failed because i got insuffisant disk space. So today i delete some useless thing in the disk but when i try to execute the command bash this message figure out :…
Hohenheim
  • 1,545
  • 1
  • 12
  • 28
0
votes
1 answer

Export an application using Sparc architecture to intel x86

I'm using an application developed in Sun Solaris 8 and it depends of the architecture SPARC ( the application using some librairies of the system Solaris 8) . Is it possible to export that application from SPARC to intel x86 ? Can i export also in…
Hohenheim
  • 1,545
  • 1
  • 12
  • 28
0
votes
0 answers

Random123 error using fujitsu compiler

I am trying to build an application which resulted in the following error during make process ../../src/Random123/features/sse.h", line 275: warning: explicit type is missing ("int" assumed) R123_STATIC_INLINE int…
user1719051
  • 109
  • 2
  • 14