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

SPARC-RTEMS5-GCC ignores or don't find libraries

I'm a beginner with RTEMS and I have built a RTEMS5 environment for an erc32 chip (the example in RTEMS Docs) in my computer with linux mint. The environment comes with sample applications. I'm trying to compile the sample from "hello" (init.c)…
Macena
  • 43
  • 5
0
votes
1 answer

GNU debugger __text_start () at wrong filepath

First a little preface: I'm using the Windows Subsystem for Linux and the Gaisler BCC version of GCC for cross-compiling (aka "machine-gcc" where the machine is sparc-gaisler-elf in this case). I compile a simple hello world program for debugging…
binaryfunt
  • 6,401
  • 5
  • 37
  • 59
0
votes
1 answer

no build set file found 4.11/rtems-sparc on rtems (VB)

. ~/rtems-4.11-work/setenv cd /home/rtems/rtems-source-builder/rtems ../source-builder/sb-set-builder \ --log=1-sparc.txt \ --prefix=${HOME}/rtems-4.11-work/tools 4.11/rtems-sparc I did all steps well.Lastly I am trying to install sparc tools ,but…
Kartopu
  • 65
  • 6
0
votes
1 answer

What do the numbers mean in a disassembled CALL instruction on SPARC?

Analysing a core dump using mdb and dbx debuggers under SPARC Solaris. mdb dis DCMD shows: >fn_name+0x1cc::dis lib.so`fn_name+0x1cc: call +0xa92fc <0xfafbc36c> dbx dis command for the same address and the core file shows: (dbx) dis…
dmitri
  • 3,183
  • 23
  • 28
0
votes
1 answer

Two copies of constant appearing in the compiled Elf

We are basically using sparc architecture and our language is Ada we are using gnat compiler to compile our code. We observed something funny. Some of the constant in our code are having two or more copies. file.adb: With FileConsts; USE…
zephyr0110
  • 223
  • 1
  • 11
0
votes
4 answers

Constant appearing inline in .text instead of loading from memory

We are basically working in a sparc architecture.and using gcc to compile our code. We are using some constants in our code, but compiler instead of allocating memory for some of these constants is instead optimizing and making it part of the…
zephyr0110
  • 223
  • 1
  • 11
0
votes
1 answer

OCCI linkage: Undefined symbols

I have been working in a solution with Oracle database access and C/C++. I'm using OCCI but we are in trouble to link in Solaris 11. Solution works "like a charm" in Linux (OpenSUSE and Mint), but doesn't in Solaris 11. Here environment…
filosofisto
  • 105
  • 7
0
votes
1 answer

SPARC assembly jmp \boot

I'll explain the problem briefly. I have a Leon3 board (gr-ut-g99). Using GRMON2 I can load executables at the desired address in the board. I have two programs. Let's call them A and B. I tried to load both in memory and individually they…
Andak
  • 124
  • 12
0
votes
1 answer

SPARC LEON error: IU exception (tt = 0x2B, data store error)

Good morning, I need an help because I'm stuck and I cannot find any solution looking at the manuals. I want to use EDAC on Leon3. I'm programming in C using the BCC compiler. In particular, I have a GR-UT699 board. I'm using GRMON to flash my elf…
Andak
  • 124
  • 12
0
votes
1 answer

Comma Separator to count

when I cat the csv file for head | wc -l it gives me answer as 1 since there are comma in between , I wanted it to eliminate the comma and give me the count as 7 Eg : cat file1.csv row1,row2,row3,row4,row5,row6,row7 cat file1.csv | head -1 |…
John Joel
  • 15
  • 1
  • 4
0
votes
1 answer

Disable the cache of Leon3 microprocessor

For personal research, I want to compare the performance of two microprocessor: Intel 8051 and Sparc Leon3. In order to evaluate these, an execution of a set of some representative functions is done through an ISS (Instruction Set Simulator).…
vnzstc
  • 19
  • 8
0
votes
1 answer

sparc assembly - add instruction with i=0 or i=1

From the Sparc architecture manual, page 110 for Add instruction: "If i = 0, ADD and ADDcc compute “R[rs1] + R[rs2]”. If i = 1, they compute “R[rs1] + sign_ext(simm13)”. In either case, the sum is written to R[rd]." When reading the assembly,…
Cherry Vanc
  • 781
  • 1
  • 4
  • 19
0
votes
3 answers

How to multiple threads share register windows in sparc processor

In an intel processor, in loose terms, typically register file, TLB and some excpetion state management are thread-aware. Is the register windows implementation in sparc processor thread-aware ? How does sparc processor execute multiple threads…
Cherry Vanc
  • 781
  • 1
  • 4
  • 19
0
votes
1 answer

What is the encoding format for unconditional Jumps on SPARC/SPARC64?

I am trying to figure out the encoding for unconditional JMPs on SPARC, i.e the JMP. After disassembling a few binaries. In my IDA disassembly the encoding for JMP %g1 is: 81 c0 40 00 And the encoding for jmp %g4 is: 81 c1 00 00 Digging through…
MrSynAckSter
  • 1,681
  • 1
  • 18
  • 34
0
votes
0 answers

Synthesis for 2 syntaxes of inline SPARC assembly

I am following up on this question and this another one. In the first post, I can get to make work the following SPARC inline assembly code : #include #include #include int n; int sum; int main () { sum = 0; n…
user1773603