|
|
Log in / Subscribe / Register

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 29, 2022 11:46 UTC (Tue) by excors (subscriber, #95769)
In reply to: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul by nye
Parent article: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Maybe Nvidia's Denver counts? From early descriptions, it sounds like it was designed with a native ISA that closely matches its microarchitecture (in-order, very superscalar, etc), and it emulates the ARM ISA via both a hardware ARM instruction decoder (low latency but poor utilisation of the unusual microarchitecture) and a firmware-based dynamic ARM-to-native translator (high latency but can heavily optimise hot loops). And it would have also emulated x86 if not for patent licensing issues.

Denver reportedly provides sequential consistency (https://threedots.ovh/blog/2021/02/cpus-with-sequential-c...) so it's even stronger than x86, regardless of what mode it's running in - maybe that made sense when they were originally planning to support x86, because it'd be cheaper than emulating x86 on a weaker model, and simpler than exactly implementing x86's weird TSO model.

On the other hand, that doesn't sound terribly different to all modern CPUs, where the ARM/x86/etc instructions are heavily translated into microarchitecture-specific micro-ops - you could view them all as essentially emulating ARM/x86, and their microarchitectures are designed to do that emulation efficiently. The main difference is just that they're designed for a single ISA (or a related pair like A32 and A64), whereas Denver and Apple M1 were designed for both ARM and x86 (even if Denver only ever shipped as ARM).


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds