SPARC

{{Short description|RISC instruction set architecture}}

{{Other uses}}

{{Use mdy dates|date=August 2016}}

{{Infobox CPU architecture

| image = Sparc-logo.svg

| name = SPARC

| designer = Sun Microsystems (acquired by Oracle Corporation)

| bits = 64-bit (32 → 64)

| introduced = {{Start date and age|1986}} (production)
{{Start date and age|1987}} (shipments)

| version = V9 (1993) / OSA2017

| design = RISC

| type = Load–store

| encoding = Fixed

| branching = Condition code

| endianness = Bi (Big → Bi)

| page size = 8 KB (4 KB → 8 KB)

| extensions = VIS 1.0, 2.0, 3.0, 4.0

| open = Yes, and royalty free

| gpr = 31 (G0 = 0; non-global registers use register windows)

| fpr = 32 (usable as 32 single-precision, 32 double-precision, or 16 quad-precision)

}}

File:Sun UltraSPARCII.jpg UltraSPARC II microprocessor (1997)]]

SPARC (Scalable Processor ARChitecture) is a reduced instruction set computer (RISC) instruction set architecture originally developed by Sun Microsystems. Its design was strongly influenced by the experimental Berkeley RISC system developed in the early 1980s. First developed in 1986 and released in 1987, SPARC was one of the most successful early commercial RISC systems, and its success led to the introduction of similar RISC designs from many vendors through the 1980s and 1990s.

The first implementation of the original 32-bit architecture (SPARC V7) was used in Sun's Sun-4 computer workstation and server systems, replacing their earlier Sun-3 systems based on the Motorola 68000 series of processors. SPARC V8 added a number of improvements that were part of the SuperSPARC series of processors released in 1992. SPARC V9, released in 1993, introduced a 64-bit architecture and was first released in Sun's UltraSPARC processors in 1995. Later, SPARC processors were used in symmetric multiprocessing (SMP) and non-uniform memory access (CC-NUMA) servers produced by Sun, Solbourne, and Fujitsu, among others.

The design was turned over to the SPARC International trade group in 1989, and since then its architecture has been developed by its members. SPARC International is also responsible for licensing and promoting the SPARC architecture, managing SPARC trademarks (including SPARC, which it owns), and providing conformance testing. SPARC International was intended to grow the SPARC architecture to create a larger ecosystem; SPARC has been licensed to several manufacturers, including Atmel, Bipolar Integrated Technology, Cypress Semiconductor, Fujitsu, Matsushita and Texas Instruments. Due to SPARC International, SPARC is fully open, non-proprietary and royalty-free.

As of 2024, the latest commercial high-end SPARC processors are Fujitsu's SPARC64 XII (introduced in September 2017 for its SPARC M12 server) and Oracle's SPARC M8 introduced in September 2017 for its high-end servers.

On September 1, 2017, after a round of layoffs that started in Oracle Labs in November 2016, Oracle terminated SPARC design after completing the M8. Much of the processor core development group in Austin, Texas, was dismissed, as were the teams in Santa Clara, California, and Burlington, Massachusetts.{{cite news |last=Vaughan-Nichols |first=Steven J. |date=September 5, 2017 |url=https://www.zdnet.com/article/sun-set-oracle-closes-down-last-sun-product-lines/ |title=Sun set: Oracle closes down last Sun product lines |website=ZDNet |access-date=September 11, 2017 |url-status=live |archive-date=September 10, 2017 |archive-url=https://web.archive.org/web/20170910094119/http://www.zdnet.com/article/sun-set-oracle-closes-down-last-sun-product-lines/}}{{cite news |last=Nichols |first=Shaun |date=August 31, 2017 |url=https://www.theregister.co.uk/2017/08/31/oracle_stops_prolonging_inevitable_layoffs/ |title=Oracle finally decides to stop prolonging the inevitable, begins hardware layoffs |website=The Register |access-date=September 11, 2017 |url-status=live |archive-date=September 12, 2017 |archive-url=https://web.archive.org/web/20170912055124/https://www.theregister.co.uk/2017/08/31/oracle_stops_prolonging_inevitable_layoffs/}}

Fujitsu will also discontinue their SPARC production (has already shifted to producing their own ARM-based CPUs), after two "enhanced" versions of Fujitsu's older SPARC M12 server in 2020–22 (formerly planned for 2021) and again in 2026–27, end-of-sale in 2029, of UNIX servers and a year later for their mainframe and end-of-support in 2034 "to promote customer modernization".{{Cite web |title=Roadmap: Fujitsu Global |url=https://www.fujitsu.com/global/products/computing/servers/unix/sparc/key-reports/roadmap/ |access-date=2022-02-15 |website=www.fujitsu.com}}

Features

The SPARC architecture was heavily influenced by the earlier RISC designs, including the RISC I and II from the University of California, Berkeley and the IBM 801. These original RISC designs were minimalist, including as few features or op-codes as possible and aiming to execute instructions at a rate of almost one instruction per clock cycle. This made them similar to the MIPS architecture in many ways, including the lack of instructions such as multiply or divide. Another feature of SPARC influenced by this early RISC movement is the branch delay slot.

The SPARC processor usually contains as many as 160 general-purpose registers. According to the "Oracle SPARC Architecture 2015" specification an "implementation may contain from 72 to 640 general-purpose 64-bit" registers.{{cite web |url=https://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-architecture-2015-2868130.pdf |title=Oracle SPARC Architecture 2015: One Architecture ... Multiple Innovative Implementations |version=Draft D1.0.0 |date=January 12, 2016 |quote=IMPL. DEP. #2-V8: An Oracle SPARC Architecture implementation may contain from 72 to 640 general-purpose 64-bit R registers. This corresponds to a grouping of the registers into MAXPGL + 1 sets of global R registers plus a circular stack of N_REG_WINDOWS sets of 16 registers each, known as register windows. The number of register windows present (N_REG_WINDOWS) is implementation dependent, within the range of 3 to 32 (inclusive). |access-date=June 13, 2016 |archive-date=April 24, 2016 |archive-url=https://web.archive.org/web/20160424051826/http://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-architecture-2015-2868130.pdf |url-status=live }} At any point, only 32 of them are immediately visible to software — 8 are a set of global registers (one of which, g0, is hard-wired to zero, so only seven of them are usable as registers) and the other 24 are from the stack of registers. These 24 registers form what is called a register window, and at function call/return, this window is moved up and down the register stack. Each window has eight local registers and shares eight registers with each of the adjacent windows. The shared registers are used for passing function parameters and returning values, and the local registers are used for retaining local values across function calls.

The "scalable" in SPARC comes from the fact that the SPARC specification allows implementations to scale from embedded processors up through large server processors, all sharing the same core (non-privileged) instruction set. One of the architectural parameters that can scale is the number of implemented register windows; the specification allows from three to 32 windows to be implemented, so the implementation can choose to implement all 32 to provide maximum call stack efficiency, or to implement only three to reduce cost and complexity of the design, or to implement some number between them. Other architectures that include similar register file features include Intel i960, IA-64, and AMD 29000.

The architecture has gone through several revisions. It gained hardware multiply and divide functionality in version 8.{{R|gcc-doc|osnews-gcc}} 64-bit (addressing and data) were added to the version 9 SPARC specification published in 1994.

In SPARC version 8, the floating-point register file has 16 double-precision registers. Each of them can be used as two single-precision registers, providing a total of 32 single-precision registers. An odd–even number pair of double-precision registers can be used as a quad-precision register, thus allowing 8 quad-precision registers. SPARC Version 9 added 16 more double-precision registers (which can also be accessed as 8 quad-precision registers), but these additional registers can not be accessed as single-precision registers. No SPARC CPU implements quad-precision operations in hardware as of 2024.{{Cite book

| title = Numerical Computation Guide – Sun Studio 10

| chapter = SPARC Behavior and Implementation

| year = 2004

| publisher = Sun Microsystems, Inc

| chapter-url = https://download.oracle.com/docs/cd/E19059-01/stud.10/819-0499/ncg_sparc.html

| access-date = September 24, 2011

| quote = There are four situations, however, when the hardware will not successfully complete a floating-point instruction: ... The instruction is not implemented by the hardware (such as ... quad-precision instructions on any SPARC FPU).

| archive-date = January 25, 2022

| archive-url = https://web.archive.org/web/20220125121541/https://docs.oracle.com/cd/E19059-01/stud.10/819-0499/ncg_sparc.html

| url-status = live

}}

Tagged add and subtract instructions perform adds and subtracts on values checking that the bottom two bits of both operands are 0 and reporting overflow if they are not. This can be useful in the implementation of the run time for ML, Lisp, and similar languages that might use a tagged integer format.

The endianness of the 32-bit SPARC V8 architecture is purely big-endian. The 64-bit SPARC V9 architecture uses big-endian instructions, but can access data in either big-endian or little-endian byte order, chosen either at the application instruction (load–store) level or at the memory page level (via an MMU setting). The latter is often used for accessing data from inherently little-endian devices, such as those on PCI buses.

History

There have been three major revisions of the architecture. The first published version was the 32-bit SPARC version 7 (V7) in 1986. SPARC version 8 (V8), an enhanced SPARC architecture definition, was released in 1990. The main differences between V7 and V8 were the addition of integer multiply and divide instructions, and an upgrade from 80-bit "extended-precision" floating-point arithmetic to 128-bit "quad-precision" arithmetic. SPARC V8 served as the basis for IEEE Standard 1754-1994, an IEEE standard for a 32-bit microprocessor architecture.

SPARC version 9, the 64-bit SPARC architecture, was released by SPARC International in 1993. It was developed by the SPARC Architecture Committee consisting of Amdahl Corporation, Fujitsu, ICL, LSI Logic, Matsushita, Philips, Ross Technology, Sun Microsystems, and Texas Instruments. Newer specifications always remain compliant with the full SPARC V9 Level 1 specification.

In 2002, the SPARC Joint Programming Specification 1 (JPS1) was released by Fujitsu and Sun, describing processor functions which were identically implemented in the CPUs of both companies ("Commonality"). The first CPUs conforming to JPS1 were the UltraSPARC III by Sun and the SPARC64 V by Fujitsu. Functionalities which are not covered by JPS1 are documented for each processor in "Implementation Supplements".

At the end of 2003, JPS2 was released to support multicore CPUs. The first CPUs conforming to JPS2 were the UltraSPARC IV by Sun and the SPARC64 VI by Fujitsu.

In early 2006, Sun released an extended architecture specification, UltraSPARC Architecture 2005. This includes not only the non-privileged and most of the privileged portions of SPARC V9, but also all the architectural extensions developed through the processor generations of UltraSPARC III, IV, and IV+, as well as CMT extensions starting with the UltraSPARC T1 implementation:

  • the VIS 1 and VIS 2 instruction set extensions and the associated GSR register
  • multiple levels of global registers, controlled by the GL register
  • Sun's 64-bit MMU architecture
  • privileged instructions ALLCLEAN, OTHERW, NORMALW, and INVALW
  • access to the VER register is now hyperprivileged
  • the SIR instruction is now hyperprivileged

In 2007, Sun released an updated specification, UltraSPARC Architecture 2007, to which the UltraSPARC T2 implementation complied.

In December 2007, Sun also made the UltraSPARC T2 processor's RTL available via the OpenSPARC project.{{cite web |title=Sun Accelerates Growth of UltraSPARC CMT Eco System |url=http://www.sun.com/pr/2007-12/sunflash.20071211.1.xml |publisher=Sun Microsystems |archive-url=https://web.archive.org/web/20080126174236/http://www.sun.com/aboutsun/pr/2007-12/sunflash.20071211.1.xml |archive-date=January 26, 2008 |url-status=dead}} It was also released under the GNU General public license v2.{{cite web|archiveurl=https://web.archive.org/web/20121017041211/http://www.oracle.com/technetwork/systems/opensparc/opensparc-faq-1444660.html|url=http://www.oracle.com/technetwork/systems/opensparc/opensparc-faq-1444660.html|title=OpenSPARC Frequently Asked Questions|publisher=Oracle|archivedate=2012-10-17|access-date=2021-03-20}} OpenSPARC T2 is 8 cores, 16 pipelines with 64 threads.

In August 2012, Oracle Corporation made available a new specification, Oracle SPARC Architecture 2011, which besides the overall update of the reference, adds the VIS 3 instruction set extensions and hyperprivileged mode to the 2007 specification.

In October 2015, Oracle released SPARC M7, the first processor based on the new Oracle SPARC Architecture 2015 specification.{{cite web

| url = https://www.oracle.com/us/corporate/features/sparc-m7/

| title = SPARC M7 Innovation

| access-date = October 13, 2015

| last=Soat |first=John

| work = Oracle web site

| publisher = Oracle Corporation

| archive-date = September 5, 2015

| archive-url = https://web.archive.org/web/20150905065312/http://www.oracle.com/us/corporate/features/sparc-m7/

| url-status = live

}} This revision includes VIS 4 instruction set extensions and hardware-assisted encryption and silicon secured memory (SSM).{{cite web|url=https://www.oracle.com/servers/sparc/software-in-silicon.html|title=Software in Silicon Cloud - Oracle|website=www.oracle.com|access-date=January 21, 2019|archive-date=January 21, 2019|archive-url=https://web.archive.org/web/20190121185630/https://www.oracle.com/servers/sparc/software-in-silicon.html|url-status=live}}

SPARC architecture has provided continuous application binary compatibility from the first SPARC V7 implementation in 1987 through the Sun UltraSPARC Architecture implementations.

Among various implementations of SPARC, Sun's SuperSPARC and UltraSPARC-I were very popular, and were used as reference systems for SPEC CPU95 and CPU2000 benchmarks. The 296 MHz UltraSPARC-II is the reference system for the SPEC CPU2006 benchmark.

Architecture

SPARC is a load–store architecture (also known as a register–register architecture); except for the load/store instructions used to access memory, all instructions operate on the registers, in accordance with the RISC design principles.

A SPARC processor includes an integer unit (IU) that performs integer load, store, and arithmetic operations.{{rp|page=9}}{{rp|pages=15{{hyp}}16}} It may include a floating-point unit (FPU) that performs floating-point operations{{rp|page=9}}{{rp|pages=15{{hyp}}16}} and, for SPARC V8, may include a co-processor (CP) that performs co-processor-specific operations; the architecture does not specify what functions a co-processor would perform, other than load and store operations.{{rp|page=9}}

=Registers=

The SPARC architecture has an overlapping register window scheme. At any instant, 32 general-purpose registers are visible. A Current Window Pointer (CWP) variable in the hardware points to the current set. The total size of the register file is not part of the architecture, allowing more registers to be added as the technology improves, up to a maximum of 32 windows in SPARC V7 and V8 as CWP is 5 bits and is part of the PSR register.

In SPARC V7 and V8 CWP will usually be decremented by the SAVE instruction (used by the SAVE instruction during the procedure call to open a new stack frame and switch the register window), or incremented by the RESTORE instruction (switching back to the call before returning from the procedure). Trap events (interrupts, exceptions or TRAP instructions) and RETT instructions (returning from traps) also change the CWP. For SPARC V9, CWP register is decremented during a RESTORE instruction, and incremented during a SAVE instruction. This is the opposite of PSR.CWP's behavior in SPARC V8. This change has no effect on nonprivileged instructions.

class="wikitable"

|+ Window Addressing

Register groupMnemonicRegister address || Availability
globalG0...G7R[{{0}}0]...R[{{0}}7]always the same ones, G0 being zero always
outO0...O7R[{{0}}8]...R[15]to be handed over to, and returned from, the called subroutine, as its "in"
localL0...L7R[16]...R[23]truly local to the current subroutine
inI0...I7R[24]...R[31]handed over from the caller, and returned to the caller, as its "out"

SPARC registers are shown in the figure above.

There is also a non-windowed Y register, used by the multiply-step, integer multiply, and integer divide instructions.{{rp|page=32}}

A SPARC V8 processor with an FPU includes 32 32-bit floating-point registers, each of which can hold one single-precision IEEE 754 floating-point number. An even–odd pair of floating-point registers can hold one double-precision IEEE 754 floating-point number, and a quad-aligned group of four floating-point registers can hold one quad-precision IEEE 754 floating-point number.{{rp|page=10}}

A SPARC V9 processor with an FPU includes:{{rp|pages=36{{hyp}}40}}

  • 32 32-bit floating-point registers, each of which can hold one single-precision IEEE 754 floating-point number;
  • 32 64-bit floating-point registers, each of which can hold one double-precision IEEE 754 floating-point number;
  • 16 128-bit floating-point registers, each of which can hold one quad-precision IEEE 754 floating-point number.

The registers are organized as a set of 64 32-bit registers, with the first 32 being used as the 32-bit floating-point registers, even–odd pairs of all 64 registers being used as the 64-bit floating-point registers, and quad-aligned groups of four floating-point registers being used as the 128-bit floating-point registers.

Floating-point registers are not windowed; they are all global registers.{{rp|pages=36{{hyp}}40}}

=Instruction formats=

All SPARC instructions occupy a full 32-bit word and start on a word boundary. Four formats are used, distinguished by the first two bits. All arithmetic and logical instructions have 2 source operands and 1 destination operand.{{cite web |url=https://arcb.csc.ncsu.edu/~mueller/codeopt/codeopt00/notes/sparc.html |title= SPARC Fundamental Instructions}} RD is the "destination register", where the output of the operation is deposited. The majority of SPARC instructions have at least this register, so it is placed near the "front" of the instruction format. RS1 and RS2 are the "source registers", which may or may not be present, or replaced by a constant.

class="wikitable" style="text-align:center;"

|+ SPARC instruction formats

rowspan=2 | Type

! colspan=32 | Bit

313029282726252423222120191817161514131211109876543210
SETHI formatcolspan="2"|00colspan="5"| RDcolspan="3"|100colspan="22"|Immediate constant 22 bits
I Branch formatcolspan="2"|00Acolspan="4"|icccolspan="3"|010colspan="22"|Displacement constant 22 bits
F Branch formatcolspan="2"|00Acolspan="4"|fcccolspan="3"|110colspan="22"|Displacement constant 22 bits
C Branch formatcolspan="2"|00Acolspan="4"|ccccolspan="3"|111colspan="22"|Displacement constant 22 bits
CALL dispcolspan="2"|01colspan="30"|PC-relative displacement
Arithmetic registercolspan="2"|10colspan="5"| RDcolspan="6"|opcodecolspan="5"| RS10colspan="8"|0colspan="5"| RS2
Arithmetic immediatecolspan="2"|10colspan="5"| RDcolspan="6"|opcodecolspan="5"| RS11colspan="13"| Immediate constant 13 bits
FPU operationcolspan="2"|10colspan="5"| FDcolspan="6"|110100/110101colspan="5"| FS1colspan="9"| opfcolspan="5"| FS2
CP operationcolspan="2"|10colspan="5"| RDcolspan="6"|110110/110111colspan="5"| RS1colspan="9"| opccolspan="5"| RS2
JMPL registercolspan="2"|10colspan="5"| RDcolspan="6"|111000colspan="5"| RS10colspan="8"|0colspan="5"| RS2
JMPL immediatecolspan="2"|10colspan="5"| RDcolspan="6"|111000colspan="5"| RS11colspan="13"| Immediate constant 13 bits
LD/ST registercolspan="2"|11colspan="5"| RDcolspan="6"|opcodecolspan="5"| RS10colspan="8"|0colspan="5"| RS2
LD/ST immediatecolspan="2"|11colspan="5"| RDcolspan="6"|opcodecolspan="5"| RS11colspan="13"| Immediate constant 13 bits

=Instructions=

==Loads and stores==

Load and store instructions have a three-operand format, in that they have two operands representing values for the address and one operand for the register to read or write to. The address is created by adding the two address operands to produce an address. The second address operand may be a constant or a register. Loads take the value at the address and place it in the register specified by the third operand, whereas stores take the value in the register specified by the first operand and place it at the address. To make this more obvious, the assembler language indicates address operands using square brackets with a plus sign separating the operands, instead of using a comma-separated list. Examples:

ld [%L1+%L2],%L3 !load the 32-bit value at address %L1+%L2 and put the value into %L3

ld [%L1+8],%L2 !load the value at %L1+8 into %L2

ld [%L1],%L2 !as above, but no offset, which is the same as +%G0

st %L1,[%I2] !store the value in %L1 into the location stored in %I2

st %G0,[%I1+8] !clear the memory at %I1+8

Due to the widespread use of non-32-bit data, such as 16-bit or 8-bit integral data or 8-bit bytes in strings, there are instructions that load and store 16-bit half-words and 8-bit bytes, as well as instructions that load 32-bit words. During a load, those instructions will read only the byte or half-word at the indicated location and then either fill the rest of the target register with zeros (unsigned load) or with the value of the uppermost bit of the byte or half-word (signed load). During a store, those instructions discard the upper bits in the register and store only the lower bits. There are also instructions for loading double-precision values used for floating-point arithmetic, reading or writing eight bytes from the indicated register and the "next" one, so if the destination of a load is L1, L1 and L2 will be set. The complete list of load and store instructions for the general-purpose registers in 32-bit SPARC is {{code|LD}}, {{code|ST}}, {{code|LDUB}} (unsigned byte), {{code|LDSB}} (signed byte), {{code|LDUH}} (unsigned half-word), {{code|LDSH}} (signed half-word), {{code|LDD}} (load double), {{code|STB}} (store byte), {{code|STH}} (store half-word), {{code|STD}} (store double).

In SPARC V9, registers are 64-bit, and the {{code|LD}} instruction, renamed {{code|LDUW}}, clears the upper 32 bits in the register and loads the 32-bit value into the lower 32 bits, and the {{code|ST}} instruction, renamed {{code|STW}}, discards the upper 32 bits of the register and stores only the lower 32 bits. The new {{code|LDSW}} instruction sets the upper bits in the register to the value of the uppermost bit of the word and loads the 32-bit value into the lower bits. The new {{code|LDX}} instruction loads a 64-bit value into the register, and the {{code|STX}} instruction stores all 64 bits of the register.

The {{code|LDF}}, {{code|LDDF}}, and {{code|LDQF}} instructions load a single-precision, double-precision, or quad-precision value from memory into a floating-point register; the {{code|STF}}, {{code|STDF}}, and {{code|STQF}} instructions store a single-precision, double-precision, or quad-precision floating-point register into memory.

The memory barrier instruction, MEMBAR, serves two interrelated purposes: it articulates order constraints among memory references and facilitates explicit control over the completion of memory references. For example, all effects of the stores that appear prior to the MEMBAR instruction must be made visible to all processors before any loads following the MEMBAR can be executed.{{Cite web |url=https://www.fujitsu.com/hk/imagesgig5/sparc64ixfx-extensions.pdf#page=103 |title=SPARC64 IXfx Extensions Fujitsu Limited Ver 12, 2 Dec. 2013 |pages=103–104 |accessdate=2023-12-17}}

==ALU operations==

Arithmetic and logical instructions also use a three-operand format, with the first two being the operands and the last being the location to store the result. The middle operand can be a register or a 13-bit signed integer constant; the other operands are registers. Any of the register operands may point to G0; pointing the result to G0 discards the results, which can be used for tests. Examples include:

add %L1,%L2,%L3 !add the values in %L1 and %L2 and put the result in %L3

add %L1,1,%L1 !increment %L1

add %G0,%G0,%L4 !clear any value in %L4

The list of mathematical instructions is {{code|ADD}}, {{code|SUB}}, {{code|AND}}, {{code|OR}}, {{code|XOR}}, and negated versions {{code|ANDN}}, {{code|ORN}}, and {{code|XNOR}}. One quirk of the SPARC design is that most arithmetic instructions come in pairs, with one version setting the NZVC condition code bits in the status register, and the other not setting them, with the default being not to set the codes. This is so that the compiler has a way to move instructions around when trying to fill delay slots. If one wants the condition codes to be set, this is indicated by adding {{code|cc}} to the instruction:

subcc %L1,10,%G0 !compare %L1 to 10 and ignore the result, but set the flags

add and sub also have another modifier, X, which indicates whether the operation should set the carry bit:

addx %L1,100,%L1 !add 100 to the value in %L1 and track carry

SPARC V7 does not have multiplication or division instructions, but it does have {{code|MULSCC}}, which does one step of a multiplication testing one bit and conditionally adding the multiplicand to the product. This was because {{code|MULSCC}} can complete over one clock cycle in keeping with the RISC philosophy. SPARC V8 added {{code|UMUL}} (unsigned multiply), {{code|SMUL}} (signed multiply), {{code|UDIV}} (unsigned divide), and {{code|SDIV}} (signed divide) instructions, with both versions that do not update the condition codes and versions that do. {{code|MULSCC}} and the multiply instructions use the Y register to hold the upper 32 bits of the product; the divide instructions use it to hold the upper 32 bits of the dividend. The {{code|RDY}} instruction reads the value of the Y register into a general-purpose register; the {{code|WRY}} instruction writes the value of a general-purpose register to the Y register.{{rp|page=32}} SPARC V9 added {{code|MULX}}, which multiplies two 64-bit values and produces a 64-bit result, {{code|SDIVX}}, which divides a 64-bit signed dividend by a 64-bit signed divisor and produces a 64-bit signed quotient, and {{code|UDIVX}}, which divides a 64-bit unsigned dividend by a 64-bit unsigned divisor and produces a 64-bit signed quotient; none of those instructions use the Y register.{{rp|page=199}}

==Branching==

Conditional branches test condition codes in a status register, as seen in many instruction sets such the IBM System/360 architecture and successors and the x86 architecture. This means that a test and branch is normally performed with two instructions; the first is an ALU instruction that sets the condition codes, followed by a branch instruction that examines one of those flags. The SPARC does not have specialized test instructions; tests are performed using normal ALU instructions with the destination set to %G0. For instance, to test if a register holds the value 10 and then branch to code that handles it, one would:

subcc %L1,10,%G0 !subtract 10 from %L1, setting the zero flag if %L1 is 10

be WASEQUAL !if the zero flag is set, branch to the address marked WASEQUAL

In a conditional branch instruction, the icc or fcc field specifies the condition being tested. The 22-bit displacement field is the address, relative to the current PC, of the target, in words, so that conditional branches can go forward or backward up to 8 megabytes. The ANNUL (A) bit is used to get rid of some delay slots. If it is 0 in a conditional branch, the delay slot is executed as usual. If it is 1, the delay slot is only executed if the branch is taken. If it is not taken, the instruction following the conditional branch is skipped.

There are a wide variety of conditional branches: {{code|BA}} (branch always, essentially a jmp), {{code|BN}} (branch never), {{code|BE}} (equals), {{code|BNE}} (not equals), {{code|BL}} (less than), {{code|BLE}} (less or equal), {{code|BLEU}} (less or equal, unsigned), {{code|BG}} (greater), {{code|BGE}} (greater or equal), {{code|BGU}} (greater unsigned), {{code|BPOS}} (positive), {{code|BNEG}} (negative), {{code|BCC}} (carry clear), {{code|BCS}} (carry set), {{code|BVC}} (overflow clear), {{code|BVS}} (overflow set).{{rp|119{{hyp}}120}}

The FPU and CP have sets of condition codes separate from the integer condition codes and from each other; two additional sets of branch instructions were defined to test those condition codes. Adding an F to the front of the branch instruction in the list above performs the test against the FPU's condition codes,{{rp|121{{hyp}}122}} while, in SPARC V8, adding a C tests the flags in the otherwise undefined CP.{{rp|123{{hyp}}124}}

The {{code|CALL}} (jump to subroutine) instruction uses a 30-bit program counter-relative word offset. As the target address is specifying the start of a word, not a byte, 30-bits is all that is needed to reach any address in the 4 gigabyte address space. The CALL instruction deposits the return address in register R15, also known as output register O7.

The {{code|JMPL}} (jump and link) instruction is a three-operand instruction, with two operands representing values for the target address and one operand for a register in which to deposit the return address. The address is created by adding the two address operands to produce a 32-bit address. The second address operand may be a constant or a register.

==Large constants==

As the instruction opcode takes up some bits of the 32-bit instruction word, there is no way to load a 32-bit constant using a single instruction. This is significant because addresses are manipulated through registers and they are 32-bits. To ease this, the special-purpose {{code|SETHI}} instruction copies its 22-bit immediate operand into the high-order 22 bits of any specified register, and sets each of the low-order 10 bits to 0. In general use, SETHI is followed by an or instruction with only the lower 10 bits of the value set. To ease this, the assembler includes the {{code|%hi(X)}} and {{code|%lo(X)}} macros. For example:

sethi %hi(0x89ABCDEF),%L1 !sets the upper 22 bits of L1

or %L1,%lo(0x89ABCDEF),%L1 !sets the lower 10 bits of L1 by ORing

The hi and lo macros are performed at assembly time, not runtime, so it has no performance hit yet makes it clearer that L1 is set to a single value, not two unrelated ones. To make this even easier, the assembler also includes a "synthetic instruction", {{code|set}}, that performs these two operations in a single line:

set 0x89ABCDEF,% L1

This outputs the two instructions above if the value is larger than 13 bits, otherwise it will emit a single {{code|ld}} with the value.

=Synthetic instructions=

As noted earlier, the SPARC assembler uses "synthetic instructions" to ease common coding tasks. Additional examples include (among others):

class="wikitable"

|+ SPARC synthetic instructions

mnemonic

! actual output

! purpose

{{code|nop|asm}}{{code|sethi 0,%g0|asm}}do nothing
{{code|clr %reg|asm}}{{code|or %g0,%g0,%reg|asm}}set a register to zero
{{code|clr [address]|asm}}{{code|st %g0,[address]|asm}}set a memory address to zero
{{code|clrh [address]|asm}}{{code|sth %g0,[address]|asm}}set the half-word at memory address to zero
{{code|clrb [address]|asm}}{{code|stb %g0,[address]|asm}}set the byte at memory address to zero
{{code|cmp %reg1,%reg2|asm}}{{code|subcc %reg1,%reg2,%g0|asm}}compare two registers, set codes, discard results
{{code|cmp %reg,const|asm}}{{code|subcc %reg,const,%g0|asm}}compare register with constant
{{code|mov %reg1,%reg2|asm}}{{code|or %g0,%reg1,%reg2|asm}}copy value from one register to another
{{code|mov const,%reg|asm}}{{code|or %g0,const,%reg|asm}}copy constant value into a register
{{code|inc %reg|asm}}{{code|add %reg,1,%reg|asm}}increment a register
{{code|inccc %reg|asm}}{{code|addcc %reg,1,%reg|asm}}increment a register, set conditions
{{code|dec %reg|asm}}{{code|sub %reg,1,%reg|asm}}decrement a register
{{code|deccc %reg|asm}}{{code|subcc %reg,1,%reg|asm}}decrement a register, set conditions
{{code|not %reg|asm}}{{code|xnor %reg,%g0,%reg|asm}}flip the bits in a register
{{code|neg %reg|asm}}{{code|sub %g0,%reg,%reg|asm}}two's complement a register
{{code|tst %reg|asm}}{{code|orcc %reg,%g0,%g0|asm}}test whether the value in a register is > 0, 0, or < 0

SPARC architecture licensees

Intel was the 80386's only producer, which made it very expensive and caused the industry to be wary of sole sourced CPUs. When Sun announced SPARC in 1987, the company stated that it would be available from multiple sources. Fujitsu was the first SPARC vendor, and Cypress Semiconductor was the second licensee; {{as of|1989|02|lc=y}} their SPARC CPUs were available, as was Texas Instruments's FPU.{{Cite magazine |last=Marshall |first=Trevor |last2=Tazelaar |first2=Jane Morrill |date=February 1989 |title=Worth the RISC |url=https://archive.org/details/eu_BYTE-1989-02_OCR/page/n299/mode/2up?view=theater |access-date=2024-10-08 |magazine=BYTE |publisher=McGraw-Hill |pages=245–249}} The following organizations have licensed the SPARC architecture:

{{div col}}

{{div col end}}

Implementations

{{sticky header}}

{{mw-datatable}}

{{sort-under}}

class="wikitable sortable mw-datatable sort-under mw-collapsible sticky-header" style="font-size: 85%;"
style="vertical-align: top;"

! Name (codename)

! Model

! abbr="Frequency" | Frequency (MHz)

! abbr="Architecture" | Arch. version

! Year

! abbr="Threads" | Total threadsThreads per core × number of cores

! abbr="Process" | Process (nm)

! abbr="Transistors" | Transistors (millions)

! abbr="Size" | Die size (mm2)

! IO pins

! abbr="Power" | Power (W)

! abbr="Voltage" | Voltage (V)

! abbr="Data cache" | L1 Dcache (KB)

! abbr="Instruction cache" | L1 Icache (KB)

! abbr="L2 Cache" | L2 cache (KB)

! abbr="L3 Cache" | L3 cache (KB)

SPARC MB86900

|Fujitsu{{cite web |title=Fujitsu to take ARM into the realm of Super |url=https://www.cpushack.com/2016/06/21/fujitsu-to-take-arm-into-the-realm-of-super/ |website=The CPU Shack Museum |date=June 21, 2016 |access-date=30 June 2019 |archive-date=June 30, 2019 |archive-url=https://web.archive.org/web/20190630094926/http://www.cpushack.com/2016/06/21/fujitsu-to-take-arm-into-the-realm-of-super/ |url-status=live }}{{cite web |title=Fujitsu SPARC |url=http://www.cpu-collection.de/?tn=0&l0=cl&l1=SPARC&l2=Fujitsu |website=cpu-collection.de |access-date=30 June 2019 |archive-date=August 6, 2016 |archive-url=https://web.archive.org/web/20160806032335/http://www.cpu-collection.de/?tn=0&l0=cl&l1=SPARC&l2=Fujitsu |url-status=live }}{{cite web |title=Timeline |url=https://sparc.org/timeline/ |website=SPARC International |access-date=30 June 2019 |archive-date=April 24, 2019 |archive-url=https://web.archive.org/web/20190424043743/http://sparc.org/timeline/ |url-status=live }}

|14.28–33||V7||1986||1×1=1||1300||0.11||{{n/a}}||256||{{n/a}}||{{n/a}}||colspan="2"|0–128 (unified)||{{CNone|none}}||{{CNone|none}}

SPARC

|VariousVarious SPARC V7 implementations were produced by Fujitsu, LSI Logic, Weitek, Texas Instruments, Cypress and Temic. A SPARC V7 processor generally consisted of several discrete chips, usually comprising an integer unit (IU), a floating-point unit (FPU), a memory management unit (MMU) and cache memory. Conversely, the Atmel (now Microchip Technology) TSC695 is a single-chip SPARC V7 implementation.

|14.28–40||V7||1989–1992||1×1=1||800–1300||~0.1–1.8||{{n/a}}||160–256||{{n/a}}||{{n/a}}||colspan="2"|0–128 (unified)||{{CNone|none}}||{{CNone|none}}

MN10501 (KAP)

|Solbourne Computer,

Matsushita{{Cite web|url=https://www.floodgap.com/retrobits/solace/|title=Floodgap Retrobits presents the Solbourne Solace: a shrine to the forgotten SPARC|website=www.floodgap.com|access-date=2020-01-14|archive-date=December 1, 2020|archive-url=https://web.archive.org/web/20201201003135/http://www.floodgap.com/retrobits/solace/|url-status=live}}

|33–36

|V8

|1990–1991

|1x1=1

|{{n/a}}

|1.0{{Cite conference|last1=Sager|first1=D.|last2=Hinton|first2=G.|last3=Upton|first3=M.|last4=Chappell|first4=T.|last5=Fletcher|first5=T.D.|last6=Samaan|first6=S.|last7=Murray|first7=R.|book-title=2001 IEEE International Solid-State Circuits Conference. Digest of Technical Papers. ISSCC (Cat. No.01CH37177) |title=A 0.18 μm CMOS IA32 microprocessor with a 4 GHZ integer execution unit |date=2001|location=San Francisco, CA, USA|publisher=IEEE|pages=324–325|doi=10.1109/ISSCC.2001.912658|isbn=978-0-7803-6608-4}}

|{{n/a}}

|{{n/a}}

|{{n/a}}

|{{n/a}}

|8

|8

|0–256

|{{CNone|none}}

microSPARC I (Tsunami)

|TI TMS390S10

|40–50||V8||1992||1×1=1||800||0.8||225?||288||2.5||5||2||4||{{CNone|none}}||{{CNone|none}}

SuperSPARC I (Viking)

|TI TMX390Z50 / Sun STP1020

|33–60||V8||1992||1×1=1||800||3.1||{{n/a}}||293||14.3||5||16||20||0–2048||{{CNone|none}}

SPARClite

|Fujitsu MB8683x

|66–108||V8E||1992||1×1=1||{{n/a}}||{{n/a}}||{{n/a}}||144, 176||{{n/a}}||2.5/3.3–5.0 V, 2.5–3.3 V||1, 2, 8, 16||1, 2, 8, 16||{{CNone|none}}||{{CNone|none}}

hyperSPARC (Colorado 1)

|Ross RT620A

|40–90||V8||1993||1×1=1||500||1.5||{{n/a}}||{{n/a}}||{{n/a}}||5?||0||8||128–256||{{CNone|none}}

microSPARC II (Swift)

|Fujitsu MB86904 / Sun STP1012

|60–125||V8||1994||1×1=1||500||2.3||233||321||5||3.3||8||16||{{CNone|none}}||{{CNone|none}}

hyperSPARC (Colorado 2)

|Ross RT620B

|90–125||V8||1994||1×1=1||400||1.5||{{n/a}}||{{n/a}}||{{n/a}}||3.3||0||8||128–256||{{CNone|none}}

SuperSPARC II (Voyager)

|Sun STP1021

|75–90||V8||1994||1×1=1||800||3.1||299||{{n/a}}||16||{{n/a}}||16||20||1024–2048||{{CNone|none}}

hyperSPARC (Colorado 3)

|Ross RT620C

|125–166||V8||1995||1×1=1||350||1.5||{{n/a}}||{{n/a}}||{{n/a}}||3.3||0||8||512–1024||{{CNone|none}}

TurboSPARC

|Fujitsu MB86907

|160–180||V8||1996||1×1=1||350||3.0||132||416||7||3.5||16||16||512||{{CNone|none}}

UltraSPARC (Spitfire)

|Sun STP1030

|143–167||V9||1995||1×1=1||470||3.8||315||521||30@167 MHz||3.3||16||16||512–1024||{{CNone|none}}

UltraSPARC (Hornet)

|Sun STP1030

|200||V9||1995||1×1=1||420||5.2||265||521||{{n/a}}||3.3||16||16||512–1024||{{CNone|none}}

hyperSPARC (Colorado 4)

|Ross RT620D

|180–200||V8||1996||1×1=1||350||1.7||{{n/a}}||{{n/a}}||{{n/a}}||3.3||16||16||512||{{CNone|none}}

SPARC64

|Fujitsu (HAL)

|101–118||V9||1995||1×1=1||400||{{n/a}}||Multichip||286||50||3.8||128||128||{{n/a}}||{{n/a}}

SPARC64 II

|Fujitsu (HAL)

|141–161||V9||1996||1×1=1||350||{{n/a}}||Multichip||286||64||3.3||128||128||{{n/a}}||{{n/a}}

SPARC64 III

|Fujitsu (HAL) MBCS70301

|250–330||V9||1998||1×1=1||240||17.6||240||{{n/a}}||{{n/a}}||2.5||64||64||8192||{{n/a}}

UltraSPARC IIs (Blackbird)

|Sun STP1031

|250–400||V9||1997||1×1=1||350||5.4||149||521||25@250 MHz||2.5||16||16||1024 or 4096||{{CNone|none}}

UltraSPARC IIs (Sapphire-Black)

|Sun STP1032 / STP1034

|360–480||V9||1999||1×1=1||250||5.4||126||521||21@400 MHz||1.9||16||16||1024–8192||{{CNone|none}}

UltraSPARC IIi (Sabre)

|Sun SME1040

|270–360||V9||1997||1×1=1||350||5.4||156||587||21||1.9||16||16||256–2048||{{CNone|none}}

UltraSPARC IIi (Sapphire-Red)

|Sun SME1430

|333–480||V9||1998||1×1=1||250||5.4||{{n/a}}||587||21@440 MHz||1.9||16||16||2048||{{CNone|none}}

UltraSPARC IIe (Hummingbird)

|Sun SME1701

|400–500||V9||1999||1×1=1||180 Al||{{n/a}}||{{n/a}}||370||13max. @500 MHz||1.5–1.7||16||16||256||{{CNone|none}}

UltraSPARC IIi (IIe+) (Phantom)

|Sun SME1532

|550–650||V9||2000||1×1=1||180 Cu||{{n/a}}||{{n/a}}||370||17.6||1.7||16||16||512||{{CNone|none}}

SPARC64 GP

|Fujitsu SFCB81147

|400–563||V9||2000||1×1=1||180||30.2||217||{{n/a}}||{{n/a}}||1.8||128||128||8192||{{n/a}}

SPARC64 GP

| --

|600–810||V9||{{n/a}}||1×1=1||150||30.2||{{n/a}}||{{n/a}}||{{n/a}}||1.5||128||128||8192||{{n/a}}

SPARC64 IV

|Fujitsu MBCS80523

|450–810||V9||2000||1×1=1||130||{{n/a}}||{{n/a}}||{{n/a}}||{{n/a}}||{{n/a}}||128||128||2048||{{n/a}}

UltraSPARC III (Cheetah)

|Sun SME1050

|600||JPS1||2001||1×1=1||180 Al||29||330||1368||53||1.6||64||32||8192||{{CNone|none}}

UltraSPARC III (Cheetah)

|Sun SME1052

|750–900||JPS1||2001||1×1=1||130 Al||29||{{n/a}}||1368||{{n/a}}||1.6||64||32||8192||{{CNone|none}}

UltraSPARC III Cu (Cheetah+)

|Sun SME1056

|900–1200||JPS1||2001||1×1=1||130 Cu||29||232||1368||50@1200 MHz||1.6||64||32||8192||{{CNone|none}}

UltraSPARC IIIi (Jalapeño)

|Sun SME1603

|1064–1593||JPS1||2003||1×1=1||130||87.5||206||959||52||1.3||64||32||1024||{{CNone|none}}

SPARC64 V (Zeus)

|Fujitsu

||1100–1350||JPS1||2003||1×1=1||130||190||289||269||40||1.2||128||128||2048||{{n/a}}

SPARC64 V+ (Olympus-B)

|Fujitsu

||1650–2160||JPS1||2004||1×1=1||90||400||297||279||65||1||128||128||4096||{{n/a}}

UltraSPARC IV (Jaguar)

|Sun SME1167

|1050–1350||JPS2||2004||1×2=2||130||66||356||1368||108||1.35||64||32||16384||{{CNone|none}}

UltraSPARC IV+ (Panther)

|Sun SME1167A

|1500–2100||JPS2||2005||1×2=2||90||295||336||1368||90||1.1||64||64||2048||32768

UltraSPARC T1 (Niagara)

|Sun SME1905

|1000–1400||UA2005||2005||4×8=32||90||300||340||1933||72||1.3||8||16||3072||{{CNone|none}}

SPARC64 VI (Olympus-C)

| Fujitsu

|2150–2400||JPS2||2007||2×2=4||90||540||422||{{n/a}}||120–150||1.1||128×2||128×2||4096–6144||{{CNone|none}}

UltraSPARC T2 (Niagara 2)

|Sun SME1908A

|1000–1600||UA2007||2007||8×8=64||65||503||342||1831||95||1.1–1.5||8||16||4096||{{CNone|none}}

UltraSPARC T2 Plus (Victoria Falls)

|Sun SME1910A

|1200–1600||UA2007|| 2008 ||8×8=64||65||503||342||1831||{{n/a}}||{{n/a}}||8||16||4096||{{CNone|none}}

SPARC64 VII (Jupiter)

|Fujitsu

|2400–2880||JPS2||2008||2×4=8||65||600||445||{{n/a}}||150||{{n/a}}||64×4||64×4||6144||{{CNone|none}}

UltraSPARC "RK" (Rock)

|Sun SME1832

|2300||{{dunno}}???||canceled||2×16=32||65||{{dunno}}||396||2326||{{dunno}}||{{dunno}}||32||32||2048||{{dunno}}

SPARC64 VIIIfx (Venus)

|Fujitsu

|2000||JPS2 / HPC-ACE||2009||1×8=8||45||760||513||1271||58||{{dunno}}||32×8||32×8||6144||{{CNone|none}}

LEON2FT

|Atmel AT697F

|100||V8||2009||1×1=1||180||{{n/a}}||{{n/a}}||196||1||1.8/3.3||16||32||{{n/a}}||{{n/a}}|none

SPARC T3 (Rainbow Falls)

|Oracle/Sun

|1650||UA2007|| 2010 ||8×16=128||40||{{dunno}}??? ||371||{{dunno}}||139||{{dunno}}||8||16||6144||{{CNone|none}}

Galaxy FT-1500

|NUDT (China)

|1800||UA2007?|| 201? ||8×16=128||40||{{dunno}}???||{{dunno}}??||{{dunno}}||65||{{dunno}}||16×16||16×16||512×16||4096

SPARC64 VII+ (Jupiter-E or M3)

|Fujitsu

|2667–3000||JPS2|| 2010 ||2×4=8||65||{{n/a}}||{{n/a}}||{{n/a}}||160||{{n/a}}||64×4||64×4||12288||{{CNone|none}}

LEON3FT

|Cobham Gaisler GR712RC

|100||V8E|| 2011 ||1×2=2||180||{{n/a}}||{{n/a}}||{{n/a}}||1.5excluding I/O buses||1.8/3.3||4x4Kb||4x4Kb||{{CNone|none}}||{{CNone|none}}

R1000

|MCST (Russia)

|1000||JPS2|| 2011 ||1×4=4||90||180||128||{{n/a}}||15||1, 1.8, 2.5||32||16||2048||{{CNone|none}}

SPARC T4 (Yosemite Falls)

|Oracle

|2850–3000||OSA2011|| 2011 ||8×8=64||40||855||403||{{dunno}}||240||{{dunno}}||16×8||16×8||128×8||4096

SPARC64 IXfx{{cite web|url=https://www.fujitsu.com/downloads/TC/sc11/sparc64-ixfx-sc11.pdf|title=Ixfx Download|publisher=fujitsu.com|access-date=May 17, 2015|archive-date=May 18, 2015|archive-url=https://web.archive.org/web/20150518120540/http://www.fujitsu.com/downloads/TC/sc11/sparc64-ixfx-sc11.pdf|url-status=live}}

|Fujitsu

|1850||JPS2 / HPC-ACE||2012||1x16=16||40||1870||484||1442||110||{{dunno}}||32×16||32×16||12288||{{CNone|none}}

SPARC64 X (Athena){{cite web|url=https://www.fujitsu.com/global/Images/HC25.27.910-SPARC64.pdf|title=Images of SPARC64|publisher=fujitsu.com|access-date=August 29, 2017|archive-date=April 22, 2016|archive-url=https://web.archive.org/web/20160422083227/https://www.fujitsu.com/global/Images/HC25.27.910-SPARC64.pdf|url-status=live}}

|Fujitsu

|2800||OSA2011 / HPC-ACE||2012||2×16=32||28||2950||587.5||1500||270||{{dunno}}||64×16||64×16||24576||{{CNone|none}}

SPARC T5

|Oracle

|3600||OSA2011|| 2013 ||8×16=128||28||1500||478||{{dunno}}||{{dunno}}||{{dunno}}||16×16||16×16||128×16||8192

SPARC M5{{cite web|url=https://www.oracle.com/us/products/servers-storage/servers/sparc/oracle-sparc/m5-32/m5-processor-ds-1922646.pdf|title=Oracle Products|publisher=oracle.com|access-date=August 29, 2017|archive-date=March 8, 2017|archive-url=https://web.archive.org/web/20170308224648/http://www.oracle.com/us/products/servers-storage/servers/sparc/oracle-sparc/m5-32/m5-processor-ds-1922646.pdf|url-status=live}}

|Oracle

|3600||OSA2011|| 2013 ||8×6=48||28||3900||511||{{dunno}}||{{dunno}}||{{dunno}}||16×6||16×6||128×6||49152

SPARC M6{{cite web|url=https://www.oracle.com/us/products/servers-storage/servers/sparc/oracle-sparc/m6-32/sparc-m6-processor-ds-2015586.pdf|title=Oracle SPARC products|publisher=oracle.com|access-date=August 29, 2017|archive-date=September 26, 2018|archive-url=https://web.archive.org/web/20180926012640/http://www.oracle.com/us/products/servers-storage/servers/sparc/oracle-sparc/m6-32/sparc-m6-processor-ds-2015586.pdf|url-status=live}}

|Oracle

|3600||OSA2011|| 2013 ||8×12=96||28||4270||643||{{dunno}}||{{dunno}}||{{dunno}}||16×12||16×12||128×12||49152

SPARC64 X+ (Athena+){{cite web|url=https://www.fujitsu.com/global/Images/HotChips24_Fujitsu_presentation.pdf|title=Fujitsu Presentation pdf|publisher=fujitsu.com|access-date=August 29, 2017|archive-date=April 22, 2016|archive-url=https://web.archive.org/web/20160422083242/https://www.fujitsu.com/global/Images/HotChips24_Fujitsu_presentation.pdf|url-status=live}}

|Fujitsu

|3200–3700||OSA2011 / HPC-ACE||2014||2×16=32||28||2990||600||1500||392||{{dunno}}||64×16||64×16||24M||{{CNone|none}}

SPARC64 XIfx{{cite web|url=https://www.fujitsu.com/global/Images/20140811hotchips26.pdf|title=Fujitsu Global Images|publisher=fujitsu.com|access-date=August 29, 2017|url-status=dead|archive-url=https://web.archive.org/web/20150518120521/http://www.fujitsu.com/global/Images/20140811hotchips26.pdf|archive-date=May 18, 2015|df=mdy-all}}

|Fujitsu

|2200||JPS2 / HPC-ACE2||2014||1×(32+2)=34||20||3750||{{dunno}}||1001||{{dunno}}||{{dunno}}||64×34||64×34||12M×2||{{CNone|none}}

SPARC M7{{cite web|url=https://swisdev.oracle.com/_files/M7_Preso.pdf|title=M7: Next Generation SPARC. Hotchips 26|publisher=swisdev.oracle.com|access-date=August 12, 2014|archive-date=October 31, 2014|archive-url=https://web.archive.org/web/20141031195402/https://swisdev.oracle.com/_files/M7_Preso.pdf|url-status=live}}{{cite web|url=https://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-t7-m7-server-architecture-2702877.pdf|title=Oracle's SPARC T7 and SPARC M7 Server Architecture|publisher=oracle.com|access-date=October 10, 2015|archive-date=November 6, 2015|archive-url=https://web.archive.org/web/20151106053601/http://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-t7-m7-server-architecture-2702877.pdf|url-status=live}}

|Oracle

|4133||OSA2015||2015||8×32=256||20||>10,000||{{dunno}}||{{dunno}}||{{dunno}}||{{dunno}}||16×32||16×32||256×24||65536

SPARC S7{{cite web|url=https://old.hotchips.org/wp-content/uploads/hc_archives/hc27/HC27.24-Monday-Epub/HC27.24.30-HP-Cloud-Comm-Epub/HC27.24.330-sonoma.Vinalk-oracle-v3.pdf |archive-url=https://ghostarchive.org/archive/20221009/https://old.hotchips.org/wp-content/uploads/hc_archives/hc27/HC27.24-Monday-Epub/HC27.24.30-HP-Cloud-Comm-Epub/HC27.24.330-sonoma.Vinalk-oracle-v3.pdf |archive-date=2022-10-09 |url-status=live|title=Hot Chips – August 23–25, 2015 – Conf. Day1 – Oracle's Sonoma Processor: Advanced low-cost SPARC processor for enterprise workloads|first1=Basant|last1=Vinaik|first2=Rahoul|last2=Puri|date=August 24, 2015|publisher=hotchips.org|access-date=January 25, 2022}}{{cite web|url=https://www.theregister.co.uk/2015/08/24/oracle_sonoma_processor_sparc/?page=1|title=Blueprints revealed: Oracle crams Sparc M7 and InfiniBand into cheaper 'Sonoma' chips|publisher=theregister.co.uk|access-date=August 29, 2017|archive-date=August 29, 2017|archive-url=https://web.archive.org/web/20170829121821/http://www.theregister.co.uk/2015/08/24/oracle_sonoma_processor_sparc/?page=1|url-status=live}}

|Oracle

|4270||OSA2015||2016||8×8=64||20||{{dunno}}???||{{dunno}}||{{dunno}}||{{dunno}}||{{dunno}}||16×8||16×8||256×2+256×4||16384

SPARC64 XII{{cite web|url=https://www.fujitsu.com/jp/documents/products/computing/servers/unix/sparc/events/2017/coolchips20/CoolChips20-rev8.pdf|title=Documents at Fujitsu|publisher=fujitsu.com|access-date=August 29, 2017|archive-date=August 29, 2017|archive-url=https://web.archive.org/web/20170829121542/http://www.fujitsu.com/jp/documents/products/computing/servers/unix/sparc/events/2017/coolchips20/CoolChips20-rev8.pdf|url-status=live}}

|Fujitsu

|4250||OSA201? / HPC-ACE||2017||8×12=96||20||5500||795||1860||{{dunno}}||{{dunno}}||64×12||64×12||512×12||32768

SPARC M8{{cite web|url=https://www.oracle.com/corporate/pressrelease/oracle-sparc-m8-091817.html|title=Oracle's New SPARC Systems Deliver 2-7x Better Performance, Security Capabilities, and Efficiency than Intel-based Systems|publisher=oracle.com|access-date=September 18, 2017|archive-date=September 18, 2017|archive-url=https://web.archive.org/web/20170918151550/https://www.oracle.com/corporate/pressrelease/oracle-sparc-m8-091817.html|url-status=live}}{{cite web|url=https://www.oracle.com/us/products/servers-storage/sparc-m8-processor-ds-3864282.pdf|title=SPARC M8 Processor|publisher=oracle.com|access-date=September 18, 2017|archive-date=February 28, 2019|archive-url=https://web.archive.org/web/20190228101811/http://www.oracle.com/us/products/servers-storage/sparc-m8-processor-ds-3864282.pdf|url-status=live}}

|Oracle

|5000||OSA2017||2017||8×32=256||20||{{dunno}}||{{dunno}}||{{dunno}}||{{dunno}}||{{dunno}}||32×32||16×32||128×32+256×8||65536

LEON4

|Cobham Gaisler GR740

|250nominal; specification from 100 to 424 MHz depending on attached RAM capabilities||V8E|| 2017 ||1×4=4||32||{{n/a}}||{{n/a}}||{{n/a}}||{{n/a}}||1.2/2.5/3.3||4x4||4x4||2048||{{CNone|none}}

R2000

|MCST (Russia)

|2000|| {{dunno}} || 2018 ||1×8=8||28||500|| {{dunno}} ||{{n/a}}||{{dunno}}||{{dunno}}||{{dunno}}||{{dunno}}||{{dunno}}||{{CNone|none}}

LEON5

|Cobham Gaisler

|{{n/a}}||V8E|| 2019 ||{{dunno}}||{{dunno}}||{{n/a}}||{{n/a}}||{{n/a}}||{{n/a}}||{{n/a}}||{{dunno}}||{{dunno}}||16–8192||{{CNone|none}}

Name (codename)

! Model

! abbr="Frequency" | Frequency (MHz)

! abbr="Architecture" | Arch. version

! Year

! abbr="Threads" | Total threads

! abbr="Process" | Process (nm)

! abbr="Transistors" | Transistors (millions)

! abbr="Size" | Die size (mm2)

! IO pins

! abbr="Power" | Power (W)

! abbr="Voltage" | Voltage (V)

! abbr="Data cache" | L1 Dcache (KB)

! abbr="Instruction cache" | L1 Icache (KB)

! abbr="L2 Cache" | L2 cache (KB)

! abbr="L3 Cache" | L3 cache (KB)

Notes:

{{Reflist|group="note"}}

Operating system support

SPARC machines have generally used Sun's SunOS, Solaris, JavaOS, or OpenSolaris including derivatives illumos and OpenIndiana, but other operating systems have also been used, such as NeXTSTEP, RTEMS, FreeBSD, OpenBSD, NetBSD, and Linux.

In 1993, Intergraph announced a port of Windows NT to the SPARC architecture, but it was later cancelled.

In October 2015, Oracle announced a "Linux for SPARC reference platform".

Open source implementations

Several fully open source implementations of the SPARC architecture exist:

  • LEON, a 32-bit radiation-tolerant, SPARC V8 implementation, designed especially for space use. Source code is written in VHDL, and licensed under the GPL.
  • OpenSPARC T1, released in 2006, a 64-bit, 32-thread implementation conforming to the UltraSPARC Architecture 2005 and to SPARC Version 9 (Level 1). Source code is written in Verilog, and licensed under many licenses. Most OpenSPARC T1 source code is licensed under the GPL. Source based on existent open source projects will continue to be licensed under their current licenses. Binary programs are licensed under a binary software license agreement.
  • S1, a 64-bit Wishbone compliant CPU core based on the OpenSPARC T1 design. It is a single UltraSPARC V9 core capable of 4-way SMT. Like the T1, the source code is licensed under the GPL.
  • OpenSPARC T2, released in 2008, a 64-bit, 64-thread implementation conforming to the UltraSPARC Architecture 2007 and to SPARC Version 9 (Level 1). Source code is written in Verilog, and licensed under many licenses. Most OpenSPARC T2 source code is licensed under the GPL. Source based on existing open source projects will continue to be licensed under their current licenses. Binary programs are licensed under a binary Software License Agreement.

A fully open source simulator for the SPARC architecture also exists:

  • [https://web.archive.org/web/20160529045508/https://sites.google.com/site/rampgold/ RAMP Gold], a 32-bit, 64-thread SPARC Version 8 implementation, designed for FPGA-based architecture simulation. RAMP Gold is written in ~36,000 lines of SystemVerilog, and licensed under the BSD licenses.

Supercomputers

For HPC loads Fujitsu builds specialized SPARC64 fx processors with a new instruction extensions set, called HPC-ACE (High Performance Computing – Arithmetic Computational Extensions).

Fujitsu's K computer ranked {{Numero|1}} in the TOP500 June 2011 and November 2011 lists. It combines 88,128 SPARC64 VIIIfx CPUs, each with eight cores, for a total of 705,024 cores—almost twice as many as any other system in the TOP500 at that time. The K Computer was more powerful than the next five systems on the list combined, and had the highest performance-to-power ratio of any supercomputer system. It also ranked {{Numero|6}} in the Green500 June 2011 list, with a score of 824.56 MFLOPS/W. In the November 2012 release of TOP500, the K computer ranked {{Numero|3}}, using by far the most power of the top three. It ranked {{Numero|85}} on the corresponding Green500 release. Newer HPC processors, IXfx and XIfx, were included in recent PRIMEHPC FX10 and FX100 supercomputers.

Tianhe-2 (TOP500 {{Numero|1}} as of November 2014) has a number of nodes with Galaxy FT-1500 OpenSPARC-based processors developed in China. However, those processors did not contribute to the LINPACK score.{{cite news|url=https://www.computerworld.com/s/article/9194799/U.S._says_China_building_entirely_indigenous_supercomputer_|title=U.S. says China building 'entirely indigenous' supercomputer|last=Thibodeau|first=Patrick|publisher=Computerworld|date=November 4, 2010|access-date=August 28, 2017|archive-date=October 11, 2012|archive-url=https://web.archive.org/web/20121011154327/http://www.computerworld.com/s/article/9194799/U.S._says_China_building_entirely_indigenous_supercomputer_|url-status=live}}

See also

  • ERC32 — based on SPARC V7 specification
  • Ross Technology, Inc. — a SPARC microprocessor developer during the 1980s and 1990s
  • Sparcle — a modified SPARC with multiprocessing support used by the MIT Alewife project
  • LEON — a space rated SPARC V8 processor.
  • R1000 — a Russian quad-core microprocessor based on SPARC V9 specification
  • Galaxy FT-1500 — a Chinese 16-core OpenSPARC-based processor

References

{{Reflist|30em|refs=

{{citation

| url = https://gcc.gnu.org/onlinedocs/gcc/

| chapter-url = https://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html

| title = Using the GNU Compiler Collection (GCC)

| publisher = GNU

| chapter = SPARC Options

| access-date = January 8, 2013

| archive-date = January 9, 2013

| archive-url = https://web.archive.org/web/20130109110608/http://gcc.gnu.org/onlinedocs/gcc/

| url-status = live

}}

{{citation

| url = https://www.osnews.com/story/6136

| title = SPARC Optimizations With GCC

| publisher = OSNews

| date = February 23, 2004

| access-date = January 8, 2013

| archive-date = May 23, 2013

| archive-url = https://web.archive.org/web/20130523233106/http://www.osnews.com/story/6136

| url-status = live

}}

{{cite book

|url = https://sparc.org/wp-content/uploads/2014/01/v8.pdf.gz

|title = The SPARC Architecture Manual, Version 8

|publisher = SPARC International, Inc.

|year = 1992

|access-date = May 27, 2023

}}

{{cite book

|url = https://sparc.org/wp-content/uploads/2014/01/SPARCV9.pdf.gz

|title = The SPARC Architecture Manual, Version 9

|editor = Weaver, D. L.

|editor2 = Germond, T.

|publication-place = SPARC International, Inc.

|publisher = Prentice Hall

|isbn = 0-13-825001-4

|year = 1994

|access-date = May 27, 2023

}}

{{citation

| url = https://www.fujitsu.com/downloads/PR/2008/20080219-01a.pdf

| title = FX1 Key Features & Specifications

| date = February 19, 2008

| publisher = Fujitsu

| access-date = December 6, 2011

| archive-date = January 18, 2012

| archive-url = https://web.archive.org/web/20120118055706/http://www.fujitsu.com/downloads/PR/2008/20080219-01a.pdf

| url-status = live

}}

{{citation

| url = https://www.opensparc.net/pubs/preszo/08/RockISSCC08.pdf

| title = A Third-Generation 65nm 16-Core 32-Thread Plus 32-Scout-Thread CMT SPARC(R) Processor

| first1 = Marc

| last1 = Tremblay

| author-link1 = Marc Tremblay

| first2 = Shailender

| last2 = Chaudhry

| work = OpenSPARC

| publisher = Sun Microsystems

| date = February 19, 2008

| access-date = December 6, 2011

| archive-date = January 16, 2013

| archive-url = https://web.archive.org/web/20130116154254/http://www.oracle.com/technetwork/systems/opensparc/

| url-status = live

}}

{{citation

| url = https://bits.blogs.nytimes.com/2009/06/15/sun-is-said-to-cancel-big-chip-project

| title = Sun Is Said to Cancel Big Chip Project

| last = Vance

| first = Ashlee

| author-link = Ashlee Vance

| work = The New York Times

| date = June 15, 2009

| access-date = May 23, 2010

| archive-date = November 4, 2011

| archive-url = https://web.archive.org/web/20111104140819/http://bits.blogs.nytimes.com/2009/06/15/sun-is-said-to-cancel-big-chip-project/

| url-status = live

}}

{{citation

| url = https://www.h-online.com/newsticker/news/item/Hot-Chips-Fujitsu-shows-off-SPARC64-VII-737073.html

| title = Fujitsu shows off SPARC64 VII

| work = heise online

| date = August 28, 2008

| access-date = December 6, 2011

| archive-date = May 23, 2013

| archive-url = https://web.archive.org/web/20130523232552/http://www.h-online.com/newsticker/news/item/Hot-Chips-Fujitsu-shows-off-SPARC64-VII-737073.html

| url-status = live

}}

{{citation

| url = https://www.theinquirer.net/inquirer/news/1137342/fujitsu-unveils-world-s-fastest-cpu

| archive-url = https://web.archive.org/web/20090517085954/http://www.theinquirer.net/inquirer/news/1137342/fujitsu-unveils-world-s-fastest-cpu

| url-status = unfit

| archive-date = May 17, 2009

| title = Fujitsu unveils world's fastest CPU

| first = Sylvie

| last = Barak

| work = The Inquirer

| date = May 14, 2009

| access-date = December 6, 2011

}}

{{citation

| url = https://www.oracle.com/us/products/servers-storage/servers/sparc-enterprise/t-series/sparc-t3-chip-ds-173097.pdf

| title = Sparc T3 processor

| work = Oracle Corporation

| access-date = December 6, 2011

| archive-date = April 24, 2016

| archive-url = https://web.archive.org/web/20160424054305/http://www.oracle.com/us/products/servers-storage/servers/sparc-enterprise/t-series/sparc-t3-chip-ds-173097.pdf

| url-status = live

}}

{{citation

| url = https://www.channelregister.co.uk/2010/12/03/oracle_sparct4_fujitsu_sparc64/

| title = Ellison: Sparc T4 due next year

| first = Timothy Prickett

| last = Morgan

| date = December 3, 2010

| work = The Register

| access-date = December 6, 2011

| archive-date = March 7, 2012

| archive-url = https://web.archive.org/web/20120307224419/http://www.channelregister.co.uk/2010/12/03/oracle_sparct4_fujitsu_sparc64/

| url-status = live

}}

{{citation

| url = https://www.fujitsu.com/downloads/SPARCE/whitepapers/sparc-architecture-m-series-en.pdf

| title = SPARC Enterprise M-series Servers Architecture

| date = April 2011

| work = Fujitsu

| access-date = November 5, 2011

| archive-date = March 4, 2016

| archive-url = https://web.archive.org/web/20160304195931/http://www.fujitsu.com/downloads/SPARCE/whitepapers/sparc-architecture-m-series-en.pdf

| url-status = live

}}

{{citation

| url = https://www.theregister.co.uk/2011/08/22/oracle_sparc_t4_hot_chips/

| title = Oracle's Sparc T4 chip

| first = Timothy Prickett

| last = Morgan

| date = August 22, 2011

| work = The Register

| access-date = December 6, 2011

| archive-date = November 30, 2011

| archive-url = https://web.archive.org/web/20111130084943/http://www.theregister.co.uk/2011/08/22/oracle_sparc_t4_hot_chips/

| url-status = live

}}

{{citation

| url = https://www.theregister.co.uk/2011/11/21/fujitsu_sparc64_ixfx_fx10_details

| title = Fujitsu parades 16-core Sparc64 super stunner

| first = Timothy Prickett

| last = Morgan

| date = November 21, 2011

| work = The Register

| access-date = December 8, 2011

| archive-date = November 24, 2011

| archive-url = https://web.archive.org/web/20111124010731/http://www.theregister.co.uk/2011/11/21/fujitsu_sparc64_ixfx_fx10_details/

| url-status = live

}}

{{citation

| url = http://ftp.lanet.lv/ftp/sun-info/sunflash/1993/Jul/55.11-Sun-Intergraph:-SPARC-and-Windows-NT

| title = Intergraph to Port Windows NT to SPARC

| first = John

| last = McLaughlin

| journal = The Florida SunFlash

| volume = 55

| issue = 11

| date = July 7, 1993

| access-date = December 6, 2011

| archive-date = July 23, 2014

| archive-url = https://web.archive.org/web/20140723093242/http://ftp.lanet.lv/ftp/sun-info/sunflash/1993/Jul/55.11-Sun-Intergraph:-SPARC-and-Windows-NT

| url-status = live

}}

{{citation

| url = https://oss.oracle.com/projects/linux-sparc/

| title = Project: Linux for SPARC - oss.oracle.com

| date = October 12, 2015

| access-date = December 4, 2015

| archive-date = December 8, 2015

| archive-url = https://web.archive.org/web/20151208142246/https://oss.oracle.com/projects/linux-sparc/

| url-status = live

}}

{{citation

| url = https://top500.org/list/2011/06/100

| title = TOP500 List (1-100)

| work = TOP500

| date = June 2011

| access-date = December 6, 2011

| archive-date = June 23, 2011

| archive-url = https://web.archive.org/web/20110623022114/http://top500.org/list/2011/06/100

| url-status = live

}}

{{citation

|url = https://www.green500.org/lists/2011/06/top/list.php

|title = The Green500 List

|work = Green500

|date = June 2011

|url-status = dead

|archive-url = https://web.archive.org/web/20110703094255/http://www.green500.org/lists/2011/06/top/list.php

|archive-date = July 3, 2011

|df = mdy-all

}}

{{citation

| url = https://www.top500.org/list/2012/11/

| title = Top500 List – November 2012 | TOP500 Supercomputer Sites

| work = TOP500

| date = November 2012

| access-date = January 8, 2013

| archive-date = November 13, 2012

| archive-url = https://web.archive.org/web/20121113024029/http://www.top500.org/list/2012/11/

| url-status = dead

}}

{{citation

| url = https://www.green500.org/lists/green201211&green500from=1&green500to=100

| title = The Green500 List – November 2012 | The Green500

| work = Green500

| date = November 2012

| access-date = January 8, 2013

| archive-date = June 6, 2016

| archive-url = https://web.archive.org/web/20160606121623/http://www.green500.org/lists/green201211%26green500from%3D1%26green500to%3D100

| url-status = live

}}

{{citation

| url = https://www.nvidia.com/content/mp4/sc-2010/theater/keane-sc10.mp4

| format = mp4

| title = Tesla Supercomputing

| first = Andy

| last = Keane

| work = Nvidia

| access-date = December 6, 2011

| archive-date = February 25, 2021

| archive-url = https://web.archive.org/web/20210225234510/https://www.nvidia.com/content/mp4/sc-2010/theater/keane-sc10.mp4

| url-status = live

}}

{{citation

| url = https://www.fujitsu.com/global/news/pr/archives/month/2011/20111107-01.html

| title = Fujitsu Launches PRIMEHPC FX10 Supercomputer

| work = Fujitsu

| date = November 7, 2011

| access-date = February 3, 2012

| archive-date = January 18, 2012

| archive-url = https://web.archive.org/web/20120118075919/http://www.fujitsu.com/global/news/pr/archives/month/2011/20111107-01.html

| url-status = live

}}

{{citation

| url = https://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/140521-ua2011-d096-p-ext-2306580.pdf

| title = Oracle SPARC Architecture 2011

| work = Oracle Corporation

| date = May 21, 2014

| access-date = November 25, 2015

| archive-date = September 24, 2015

| archive-url = https://web.archive.org/web/20150924123915/http://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/140521-ua2011-d096-p-ext-2306580.pdf

| url-status = live

}}

{{citation

| url = https://top500.org/system/177999

| title = Tianhe-2 (MilkyWay-2)

| work = TOP500

| date = May 2015

| access-date = May 27, 2015

| archive-date = May 26, 2015

| archive-url = https://web.archive.org/web/20150526073136/http://www.top500.org/system/177999

| url-status = live

}}

}}