What are the currently used processor /GPU combinations (other than x-86(32) and x86-32).. Please use the Linux kernerl architecture names (or identifiers.)... ?
Assistant
You asked for currently used processor/GPU combinations (other than x86-64 and x86-32) and want them identified using Linux kernel architecture names or identifiers.
Interpreting the question:
Exclude x86 (both 32-bit and 64-bit) architectures.
Focus on other processor architectures supported by the Linux kernel.
Identify commonly paired CPU and GPU combos in Linux-relevant platforms.
Use Linux kernel architecture names/identifiers (found in kernel source such as include/uapi/asm-generic/, arch-specific directories, or uname -m outputs).
Common Linux Kernel Architectures (excluding x86):
Arch identifier (uname -m)
Architecture
Typical usage
arm
32-bit ARM
Many embedded, mobile devices
aarch64
ARM64 (64-bit)
Modern mobile, servers, SoCs
powerpc
PowerPC 32-bit
Older IBM hardware, embedded
powerpc64
PowerPC 64-bit
IBM POWER servers
risc-v
RISC-V 64-bit
Emerging open CPU architecture
mips
MIPS 32-bit
Embedded systems
mips64
MIPS 64-bit
Network/embedded systems
sparc
SPARC 32-bit
Legacy enterprise systems
sparc64
SPARC 64-bit
Legacy enterprise servers
s390
IBM System z
IBM mainframes
Linux kernel architecture GPU & CPU combinations (excluding x86):
1) arm / aarch64 (commonly used in mobile, embedded, and ARM servers)
CPU: ARM Cortex-A series, Neoverse, Apple M1/M2 (aarch64)
GPU:
Mali GPUs (e.g. Mali-T, G-series) — commonly found in ARM SoCs (e.g. Samsung Exynos, HiSilicon Kirin)
Adreno GPUs (Qualcomm Snapdragon SoCs)
Apple GPU (custom GPU in M1/M2, aarch64 based)
Broadcom VideoCore (Raspberry Pi ARM SoCs)
NVIDIA Tegra SoCs (arm64 + NVIDIA GPU)
Linux GPU drivers involved include:
arm or aarch64 for processors
drm/msm (Qualcomm Adreno)
drm/mediatek for MediaTek GPUs
drm/arm/mali (Mali driver)
drm/freedreno (open source Adreno driver)
drm/vc4 (Broadcom VideoCore)
drm/tegra (NVIDIA Tegra GPUs)
2) powerpc / powerpc64 (IBM POWER systems)
CPU: IBM POWER architecture processors
GPU:
NVIDIA GPUs (with proprietary drivers, and some open-source nouveau support)
In some embedded PowerPC boards, integrated GPUs or minimal graphics solutions
For some workstation PPC64 systems, FireGL/AMD GPUs or ATI GPUs via PCI
Linux kernel identifies CPU as powerpc or powerpc64 and GPU via DRM drivers for radeon, amdgpu, or nouveau.
3) risc-v (riscv64)
CPU: RISC-V 64-bit processors (still emerging)
GPU: Typically paired with embedded GPUs like:
Mali via Arm's custom SoCs using RISC-V as management cores
Open-source GPUs (still limited support in kernel)
Some RISC-V SoCs integrate simple 2D/3D accelerators but no mainstream GPU yet
Kernel arch: riscv64
4) mips / mips64
CPU: MIPS 32/64-bit embedded processors
GPU: Usually paired with simple GPUs for embedded systems, or specialized accelerators
GPUs are less common or proprietary in embedded devices running Linux on MIPS
Kernel arch: mips or mips64
5) s390 (IBM System z mainframes)
CPU: IBM System z mainframe processors
GPU:
s390 usually does not run graphics in traditional sense, some virtualization hosts GPU passthrough to guests
Solutions like PCI passthrough to physical GPUs on KVM guests
Kernel arch: s390
Summary Table (Examples)
Kernel Arch
Common CPU
Common GPU(s)
Linux driver examples
arm
ARM Cortex-A (32-bit)
Mali, Adreno, VideoCore
drm/arm/mali, drm/freedreno
aarch64
ARM64, Apple M1
Apple GPU, Mali, Adreno, Tegra
drm/arm/mali, drm/tegra
powerpc
IBM POWER (32-bit)
NVIDIA, AMD Radeon, ATI (PCIe)
nouveau, radeon, amdgpu
powerpc64
IBM POWER 64-bit
NVIDIA, AMD Radeon
nouveau, radeon, amdgpu
riscv64
RISC-V 64-bit
Embedded GPUs (limited)
to be developed
mips
MIPS 32-bit
Embedded GPUs (rare)
proprietary/custom
mips64
MIPS 64-bit
Embedded GPUs (rare)
proprietary/custom
s390
IBM System z
None or GPU passthrough
KVM passthrough
If you want, I can give you specific files or driver names in the kernel source tree related to these combos.
Final Notes:
The Linux kernel architecture names are:
arm (32-bit ARM)
aarch64 (ARM64/ARMv8+)
powerpc and powerpc64
riscv64
mips and mips64
s390
Each architecture supports different GPU hardware, mostly ARM platforms have a wide variety of GPU SoCs supported.
NVIDIA Tegra (arm64) is a major non-x86 platform that combines ARM CPU with NVIDIA GPU.
PowerPC systems mostly rely on PCIe discrete GPUs like NVIDIA or AMD.
If you want more on a particular arch or GPU+CPU relationship for Linux, just ask!
User
Does SDL exist for RISC-V based systems?
Assistant
Yes, SDL (Simple DirectMedia Layer) can be built and run on RISC-V-based systems, though the level of support depends largely on the underlying OS, toolchain, and available hardware drivers.
Details:
SDL itself is architecture-independent, written mostly in portable C, and therefore can be compiled for any architecture for which you have a suitable C compiler and supporting libraries (like libc, compiler toolchain, etc.).
The Linux kernel architecture name for RISC-V is riscv64 (for 64-bit), and SDL can be compiled on Linux running on RISC-V hardware, assuming:
You have a working RISC-V Linux distribution (such as Fedora RISC-V, Debian RISC-V, or custom builds).
You have the appropriate development toolchain (gcc or clang targeting riscv64).
Dependencies that SDL needs (like audio, input, video libraries) are available for RISC-V Linux.
Video and input backends: SDL depends on lower-level systems for rendering and input. On RISC-V Linux, these typically are:
Frame buffer (SDL_VIDEODRIVER=fbcon)
X11 or Wayland if a graphical server runs on RISC-V
OpenGL or Vulkan (if GPU drivers are available on your RISC-V system)
GPU support on RISC-V is currently limited — many current RISC-V boards are still early development platforms with minimal GPU acceleration, so SDL may fall back to software rendering or framebuffer.
SDL development and builds are known to work on various architectures, and there are no hardcoded restrictions against RISC-V.
Practical usage:
Several RISC-V Linux distros and SDKs can compile and run SDL applications.
Cross-compiling SDL for RISC-V is supported.
If you have a RISC-V environment with X11/Wayland or framebuffer, you can run SDL programs.
Summary:
SDL does exist and can be used on RISC-V Linux systems.
Depends on your Linux distribution, drivers, and hardware support.
SDL's portability makes it well suited for emerging platforms, including RISC-V.
If you want, I can help you with instructions or references for building SDL on a specific RISC-V Linux distribution.
User
in Acorn Computers architecture what architecture were avaibale on the tube?
Assistant
Great question!
Acorn Computers' "Tube" was an expansion interface designed to connect a second processor to the BBC Microcomputer, allowing the BBC Micro to act primarily as an input-output (I/O) processor while the "attached" second processor would run user programs.
Architectures Available on the Tube
6502 (6502 Second Processor)
The original BBC Micro used a 6502 CPU.
A second 6502 CPU second processor was available and used the Tube interface.
Z80
A Z80 second processor was available, allowing the BBC Micro to run CP/M or Z80 code.
This provided access to a wide range of CP/M software.
32016 (National Semiconductor 32016)
A more powerful 32-bit NS32016 second processor was available.
This allowed more advanced multitasking OS such as PANOS.
Other Radical CPU Second Processors
Some experimental or less common processors were tried on the Tube interface, but the 6502, Z80, and 32016 processors were the main commercially available architectures.
Summary
Tube Second Processor
Architecture
Typical Use
6502 Second Processor
MOS Technology 6502
Native BBC Micro software
Z80 Second Processor
Zilog Z80
CP/M OS and software
32016 Second Processor
National Semi 32016
32-bit PANOS OS, more advanced
Note: The Tube allowed loosely coupled co-processing — the main BBC Micro CPU (6502) handled I/O and user interface, while the connected second CPU did computation or ran other OSes. All communication was via a high-speed data bus (Tube).
If you want, I can provide more detail on specific Tube OSes or software environments for these CPUs!
User
Include third party systems ..
Assistant
Certainly! When considering Acorn's Tube interface including third-party systems, the ecosystem expands beyond just the official Acorn second processors. Several third-party developers produced alternative processors and expansions that hooked into the Tube to provide additional architectures or functionality.
Here’s an extended overview including third-party Tube processors and architectures:
Acorn Tube Interfaces — Official and Third-Party Architectures
Architecture / CPU
Producer
Description / Usage
6502 (MOS Technology 6502)
Acorn Official
Native BBC Micro processor architecture.
Z80 (Zilog Z80)
Acorn Official
Ran CP/M OS; popular for business apps on BBC Micro.
NS32016 (National Semiconductor)
Acorn Official
32-bit CPU running PANOS; advanced multitasking OS.
68000 (Motorola 68000)
Various 3rd parties
Third-party Tube second processors with 68000 CPU; allowed running UNIX-like OS or other software needing 16/32-bit architecture.
ARM (Acorn ARM Development System)
Acorn (later)
Early ARM evaluation boards could be connected via Tube; crucial to ARM history and A4000 series transition.
CoPro 2 (Z80 CP/M-compatible)
3rd Party (examples: Academic Programs)
Enhanced Z80 second processors for CP/M, with more RAM and speed.
NS32032 (National Semiconductor)
Third party / experimental
Later versions of 32016 family, some third party projects attempted to integrate these.
NS16032 (National Semi)
Third party / experimental
Sometimes confused with 32016, some upgrades or variants tried in unofficial Tube expansions.
Details on notable third-party or uncommon Tube processors:
Motorola 68000-Based Processors
The 68000 is a large step up from 8-bit or 16-bit CPUs in the Tube context.
Several well-known third-party expansions or academic projects connected 68000 CPUs via the Tube, leveraging the BBC Micro I/O for a more powerful CPU environment.
These systems could run experimental UNIX ports or bespoke OSes.
User
Of courrently in use Operating Systems , list the OS platform and processor architectures supported. ... Include industrial systems as well as consume..
Assistant
Certainly! Here’s a broad overview of currently in-use operating systems, focusing on their supported platforms and processor architectures, including both consumer and industrial/embedded systems. This overview covers mainstream OSes as well as widely adopted specialized or industrial OSes.
Currently In-Use Operating Systems: Platforms and Supported Processor Architectures
Industrial automation, automotive systems, embedded realtime OS widely used in mission-critical applications.
VxWorks (Wind River)
x86, ARM (arm, aarch64), PowerPC, MIPS, Coldfire, SH, others
Embedded real-time OS for aerospace, defense, automotive, industrial control.
RTEMS
PowerPC, ARM, x86, MIPS, RISC-V, SPARC, MicroBlaze, Nios II, others
Open-source real-time OS used in aerospace, satellites, industrial control.
Zephyr (Linux Foundation)
ARM Cortex-M series (32-bit ARM), x86_64, riscv, ARC, Nios II, Xtensa, RISC-V, others
User
How do you assemble a line of x86-32 code from a menmonic to actual byte sequence. The assemble function is supplied *char (pointer to char), and a worksapce to use * DWORD .
Assistant
You are asking how to assemble a single line of x86-32 assembly instruction, given the mnemonic and operands, into machine code bytes, with an API that looks like:
c
int assemble(const char* mnemonic_line, DWORD* workspace);
(in this example, DWORD is presumably a 32-bit unsigned type, and workspace is a buffer to write machine code bytes into.)
Important points and assumptions:
We assume you want to convert textual x86 assembly like "mov eax, 1" or "add ebx, eax" into the corresponding machine code bytes.
You have the mnemonic and operands as a string (const char *).
You have a workspace buffer (e.g. DWORD *) where machine code bytes should be written.
The function should parse the assembly line, encode the instruction, generate the bytes, and store them in the workspace buffer, then return the number of bytes produced (or an error).
General approach to implement assemble() function for x86-32
This process is non-trivial since the x86 opcode encoding is complex; CPU instructions use variable-length encoding, prefixes, modrm bytes, sib bytes, immediate operands, displacement, etc.
Usually, assemblers or assembler libraries handle this.
Simplified overview: Steps to assemble a single x86-32 instruction line
ModR/M byte (specifies addressing mode and registers)
SIB byte if required (scale-index-base addressing)
Displacement (if any)
Immediate (if any)
4. Write encoded bytes into workspace buffer
Fill workspace with machine code bytes.
User
What is a typical windows , mac and linux function epilog, prolog in assembler?
Assistant
Great question! Function prologues and epilogues in assembly language are the sequences of instructions at the start and end of a function, responsible for setting up and cleaning up the stack frame, preserving callee-saved registers, and preparing for local variables or function calls.
The typical function prolog and epilog differ depending on:
The calling convention used.
The architecture (here, assume x86-32 or x86-64).
The OS ABI (Windows, macOS, Linux).
I’ll cover x86-64 (AMD64/Intel64) prologs and epilogs for Windows, macOS, and Linux, along with a note for x86-32. That’s because modern systems mostly use 64-bit ABIs; prolog/epilog styles differ somewhat across OSes and calling conventions.
1. Prolog and Epilog Overview on x86-64
Set up stack frame:
Typically subtract from RSP to allocate space for locals.
Save previous base pointer RBP and set RBP to new frame.
Save callee-saved registers (if needed).
Clean up in epilog by restoring registers and stack pointer.
2. Calling Conventions and ABI Differences Summary
OS / ABI
Calling convention
Callee-saved registers
Stack frame usage prolog/epilog
Windows x64
Microsoft x64 calling convention
RBX, RBP, RDI, RSI, R12-R15
Has "shadow space" (caller reserves 32 bytes)
System V AMD64 (Linux/macOS)
System V AMD64 ABI
RBX, RBP, R12-R15
No shadow space; RSP aligned to 16 bytes
3. Typical Windows x86-64 Function Prolog & Epilog
Prolog:
asm
push rbp ; save old base pointer
mov rbp, rsp ; establish stack frame base
sub rsp, X ; allocate space for local variables (X bytes)
; optionally save callee-saved registers (e.g. push rbx, rdi, etc.)
The Windows x64 ABI requires a 32-byte shadow space that the caller reserves on the stack before ; callee does not touch it directly in the prolog.
Dataset releases
Not yet included in a published release.
Example: Cambridge Microprocessor systems and others produced 68000 Tube cards.
ARM Processors (Early Development Systems)
Although designed later, Acorn’s ARM Evaluation boards connected via the Tube bus in early development phases.
These boards effectively acted as second processors before ARM-based BBC models like the Archimedes series.
This was mainly an Acorn-led but tightly integrated development environment bridging the Tube and ARM.
Z80 Third-Party Enhancements
Some third parties released enhanced Z80 second processors with faster CPUs, more memory, or better CP/M compatibility.
Often used in educational or business settings to extend BBC Micro’s CP/M capabilities.
Summary Table (Including Third-Party Processors)
CPU / Architecture
Producer
Notes / OS Examples
6502
Acorn
Native BBC Micro applications
Z80
Acorn + Third-party
CP/M OS, enhanced versions
NS32016
Acorn
PANOS OS, advanced multitasking
Motorola 68000
Third-party
UNIX-like OS, research & education
ARM (early eval boards)
Acorn
ARM development, future Archimedes
NS32032 / NS16032 variants
Experimental / 3rd-party
Limited use, experimental expansions
References for further exploration
The BBC Micro User Guide — discussion of Tubebus expansions
Technical manuals and archives from Acorn & third-party companies (Cambridge Micro, Academic Publications)
The "Tube" communication protocol and hardware references in the BBC Microcomputer User Guide
In short
The Tube was architecturally flexible — originally supporting 6502, Z80, and 32016, it was extended by 3rd parties (notably with Motorola 68000 CPUs) and used extensively during ARM CPU development, representing a fascinating early example of co-processing and heterogeneous computing inside 8-bit/16-bit computer environments.
If you'd like, I can help locate schematics, software, or specific OS info for any of these second processors!
Open-source real-time OS for resource-constrained embedded/IoT devices.
Windows Embedded / IoT
x86_64, ARM64
Industrial and consumer IoT devices, kiosks, ATMs, medical devices.
Tizen (Linux-based)
arm, aarch64, x86_64
Consumer smart devices — TVs, wearables, some industrial appliances.
Use a parsing library or write manual parser for registers, constants, and operand formats.
Have a table mapping mnemonics+operand combinations to opcodes.
Carefully build ModR/M byte:
Mod field (2 bits)
Reg/opcode field (3 bits)
R/M field (3 bits)
Handle immediate sizes (8-bit vs 32-bit).
Note that DWORD * workspace means you can store 4 bytes as one DWORD value at once if you want for performance, but may also treat workspace as unsigned char* for simplicity.
Minimal example in pseudocode (very simplified)
c
int assemble(const char* asm_line, DWORD* workspace) {
unsigned char* buf = (unsigned char*)workspace;
int len = 0;
// Example: handle only 'mov reg32, imm32'
char mnemonic[8];
char op1[8], op2[16];
sscanf(asm_line, "%7s %7[^,], %15s", mnemonic, op1, op2);
if (strcmp(mnemonic, "mov") == 0) {
int reg_code = get_reg32_code(op1);
if (reg_code >= 0) {
unsigned int imm = strtoul(op2, NULL, 0);
buf[0] = 0xB8 + reg_code; // mov reg32, imm32 opcodes
buf[1] = imm & 0xFF;
buf[2] = (imm >> 8) & 0xFF;
buf[3] = (imm >> 16) & 0xFF;
buf[4] = (imm >> 24) & 0xFF;
len = 5;
return len;
}
}
// Other instructions not implemented in this minimal example
return -1; // error or unsupported mnemonic
}
You need an instruction encoding database (opcode tables).
Accurate parsing of operands (registers, immediates, memory).
Functions to build ModR/M, SIB, displacement and immediate fields.
Handle instruction prefixes.
Handle more complex addressing modes.
Alternatively:
Use an existing assembler or assembler library like NASM, YASM, LLVM MCAsmParser, or libopcodes from GNU Binutils.
For custom use, projects like Keystone Engine (https://www.keystone-engine.org/) provide an API to assemble instructions into bytes, abstracting the complexity.
Summary
You cannot typically write a full x86 assembler inline with a simple short function; it requires parsing and encoding capability.
For a single mnemonic line, parse the instruction, figure out the instruction encoding (opcode + modrm + imm), write the bytes into the workspace buffer, and return the length.
Workspace is a buffer for bytes. Casting DWORD* to unsigned char* works for writing individual bytes.
If you want, I can help you:
Write a minimal partial assembler for common instructions.
Point you to libraries/tools to embed assembler functionality.
Explain full x86 instruction encoding formats.
Just ask!
call
Local stack space allocated after setting rbp.
Epilog:
asm
add rsp, X ; deallocate local variables (match sub rsp, X)
pop rbp ; restore old base pointer
ret ; return
Or equivalently:
asm
mov rsp, rbp ; restore stack pointer
pop rbp ; restore base pointer
ret
4. Typical Linux/macOS (System V AMD64 ABI) Function Prolog & Epilog
Prolog:
asm
push rbp ; save old base pointer
mov rbp, rsp ; establish stack frame base
sub rsp, X ; allocate local variables
; optionally save callee-saved registers (e.g. push rbx, r12, etc.)
Stack aligned to 16 bytes before call.
No shadow space like Windows.
Locals reserved after setting rbp.
Epilog:
asm
mov rsp, rbp ; restore rsp
pop rbp ; restore rbp
ret
Or:
asm
add rsp, X ; deallocate locals
pop rbp ; restore rbp
ret
push ebp ; save caller's ebp
mov ebp, esp ; set frame pointer
sub esp, X ; reserve local stack space
; optionally save callee-saved registers (ebx, esi, edi)
Epilog:
asm
mov esp, ebp ; restore stack pointer
pop ebp ; restore base pointer
ret
6. Examples
Windows x64 prolog (allocating 32 bytes locals)
asm
push rbp
mov rbp, rsp
sub rsp, 32
; function body...