TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

SuperH

147 pointsby rdpintqogeogsaaover 3 years ago

17 comments

thedracleover 3 years ago
We used SH4 chips for the cosmic-ray surface detector array for the Telescope Array project: <a href="http:&#x2F;&#x2F;telescopearray.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;telescopearray.org&#x2F;</a><p>I cut my embedded development teeth writing device drivers and custom firmware targeting it.<p>The reason we used SH4 is because the Dreamcast had failed, so there was a huge surplus of them available on the market at the time.<p>It was easily one of the most interesting and rewarding projects of my life to work on.
评论 #29469815 未加载
评论 #29467406 未加载
评论 #29470604 未加载
评论 #29470898 未加载
评论 #29468085 未加载
dangover 3 years ago
A few past related threads:<p><i>J2 open processor: an open source processor using the SuperH ISA</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26866065" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26866065</a> - April 2021 (45 comments)<p><i>The SuperH-3, part 15: Code walkthrough</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20779622" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20779622</a> - Aug 2019 (1 comment)<p><i>The SuperH-3, part 1: Introduction</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20622921" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20622921</a> - Aug 2019 (2 comments)<p><i>Building a SuperH-compatible CPU from scratch [video]</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11886079" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11886079</a> - June 2016 (24 comments)<p><i>Resurrecting the SuperH architecture</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9812010" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9812010</a> - July 2015 (15 comments)
评论 #29466557 未加载
monocasaover 3 years ago
Easily one of my favorite archs, at least as far as the idea of it goes. IMO the most pure classic 5 stage RISC. Divide is split into each cycle&#x27;s ops, iterate for as long as your results need. It&#x27;s pretty easy to get to a point where you can just read the hex of the opcodes as three address RISC with 16 bit instructions and 16 registers means the first nybble is the opcode, and the other three nybbles are the registers. And the whole thing feels like someone told some engineers that they have to make a RISC with half the gates of an equivalent MIPS and the mad lads actually did it, and did it well.<p>A little ascetic for these days though, IMO.
评论 #29464798 未加载
评论 #29464828 未加载
评论 #29465319 未加载
paul_fover 3 years ago
Had the pleasure to announce the SH architecture and the SH-1 at the Microprocessor Forum in 1993. Maybe the first high performance embedded RISC device. Sega was the launch customer, but what we really wanted at he time was the hard disk market. Simple pitch: 10MIPS, 10M devices, $10 <a href="http:&#x2F;&#x2F;www.verycomputer.com&#x2F;31_7a04bb69b4bdf1ee_1.htm" rel="nofollow">http:&#x2F;&#x2F;www.verycomputer.com&#x2F;31_7a04bb69b4bdf1ee_1.htm</a><p>Was not a fan of the name SH, thought it was boring. Tried to get Hitachi to call it &quot;Sonic&quot; instead. As in (S)onic the (H)edgehog
评论 #29470742 未加载
评论 #29468646 未加载
spatulonover 3 years ago
I used to work in automotive software, where the SH-2A was a popular choice for engine controller units, particularly in Japan.<p>It was the first CPU I encountered that uses branch delay slots [1], meaning that the instruction immediately following a branch instruction is always executed, even when the branch is taken. That took a bit of getting used to, although I understand it&#x27;s quite common on RISC architectures.<p>The SH-4 was most notably used in the Sega Dreamcast.<p>[1]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Delay_slot" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Delay_slot</a>
评论 #29464507 未加载
评论 #29466991 未加载
cbmuserover 3 years ago
FWIW, we’re still building an unofficial port of Debian for sh4:<p>&gt; <a href="https:&#x2F;&#x2F;buildd.debian.org&#x2F;status&#x2F;architecture.php?a=sh4&amp;suite=sid" rel="nofollow">https:&#x2F;&#x2F;buildd.debian.org&#x2F;status&#x2F;architecture.php?a=sh4&amp;suit...</a><p>Installer images are being built, too. But currently don’t boot due to an resolved bug in QEMU or the kernel:<p>&gt; <a href="https:&#x2F;&#x2F;cdimage.debian.org&#x2F;cdimage&#x2F;ports&#x2F;debian-installer&#x2F;2021-10-20&#x2F;sh4&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cdimage.debian.org&#x2F;cdimage&#x2F;ports&#x2F;debian-installer&#x2F;20...</a><p>If you’re interested in Linux on sh4, join the #debian-ports IRC channel on OFTC.<p>I’m the primary maintainer of the Debian sh4 port (and m68k, sparc64, x32, ia64, powerpc and ppc64).
评论 #29467926 未加载
评论 #29468674 未加载
chasilover 3 years ago
ARM Thumb is similar in design, and the wiki says that ARM licensed SuperH patents to implement it.<p>Of several Busybox binaries for ARM, the v7m version is the smallest, and is (AFAIK) Thumb-only.<p><pre><code> busybox-armv5l 2019-06-10 14:02 1.1M busybox-armv7l 2019-06-10 14:02 1.1M busybox-armv7m 2019-06-10 14:02 867K busybox-armv7r 2019-06-10 14:02 1.1M busybox-armv8l 2019-06-10 14:02 1.1M busybox-sh2eb 2019-06-10 14:02 1.3M busybox-sh4 2019-06-10 14:02 1.0M </code></pre> <a href="https:&#x2F;&#x2F;busybox.net&#x2F;downloads&#x2F;binaries&#x2F;1.31.0-defconfig-multiarch-musl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;busybox.net&#x2F;downloads&#x2F;binaries&#x2F;1.31.0-defconfig-mult...</a>
评论 #29464336 未加载
PandaPanda150over 3 years ago
I wrote a couple of games for the SEGA Dreamcast. There are two things that I remember from back then:<p>1) The compiler support for SuperH was beyond abysmal.<p>2) I loved that machine anyway.
评论 #29465666 未加载
评论 #29470895 未加载
评论 #29476407 未加载
评论 #29464537 未加载
anamaxover 3 years ago
That takes me back.<p>I wrote SH-3&#x2F;4 simulators that were significantly faster than the actual parts. (The cheat was that the simulator ran that fast on an early 200MHz Pentium while the SH-3 was something like 35Mhz.)<p>I also wrote a synthesizable[1] SH-5 hardware model that was cycle and signal accurate at every module boundary and ran &gt;100k cycles&#x2F;second on said Pentium. (SH-5 was a 64 bit successor to the SH-4 that also had a 32 bit mode that ran SH-4 code. I don&#x27;t know whether it ever shipped.)<p>[1] The cache, TLB, and floating-point weren&#x27;t synthesizable. Making them synthesizable would have killed the cycles&#x2F;second.
ndiddyover 3 years ago
It would have been interesting to see what would have happened to the SuperH architecture if Renesas decided to improve it instead of continually selling the same 200 MHz part with no die shrinks or improvements until people stopped buying them.
评论 #29465967 未加载
tyingqover 3 years ago
Used in some machines that were pretty cool at the time, like the tiny Jornada 680[1]. There was a Linux distro called Jlime that could run on these. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Jlime" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Jlime</a><p>[1] <a href="https:&#x2F;&#x2F;ed154c547559d2878d6a-e584b6b63c3a42919fe0cc5066a14308.ssl.cf1.rackcdn.com&#x2F;101889488_hp-hewlett-packard-jornada-680-handheld-pc-extras-ebay.jpg" rel="nofollow">https:&#x2F;&#x2F;ed154c547559d2878d6a-e584b6b63c3a42919fe0cc5066a1430...</a>
评论 #29464260 未加载
braincodeover 3 years ago
This post is so timely!<p>Debugging SH4 processors is tricky because they have a non-standard extension to JTAG standard: H-UDI.<p>Does anybody in this thread have details about the H-UDI proprietary SH4 JTAG extensions?<p>Context here:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;GlasgowEmbedded&#x2F;glasgow&#x2F;discussions&#x2F;290" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;GlasgowEmbedded&#x2F;glasgow&#x2F;discussions&#x2F;290</a>
georgecmuover 3 years ago
Very cool; takes me back down the memory lane. We spun our own SH4-based SBC for the first prototype of this robot back in 2001: <a href="https:&#x2F;&#x2F;www.netl.doe.gov&#x2F;node&#x2F;3037" rel="nofollow">https:&#x2F;&#x2F;www.netl.doe.gov&#x2F;node&#x2F;3037</a><p>It was a fun architecture: 16-bit instruction set; 32-bit bus, and 64-bit vector instruction set. I actually got Linux running on it, but ended up running the code without any OS. We switched to an off-the-shelf ARM-based SBC for the next version of the robot.
aconstover 3 years ago
Worked on this while an intern in Ricoh in Japan : <a href="https:&#x2F;&#x2F;www.kernel.org&#x2F;doc&#x2F;ols&#x2F;2004&#x2F;ols2004v2-pages-239-250.pdf" rel="nofollow">https:&#x2F;&#x2F;www.kernel.org&#x2F;doc&#x2F;ols&#x2F;2004&#x2F;ols2004v2-pages-239-250....</a><p>I was not the one who put Linux on it (it is not my name on the paper, but I was there around that time), but I had fun making a NetMeeting like demonstration application on it. Well, there was no sound but I could get 5fps video! :D
评论 #29476553 未加载
johnklosover 3 years ago
The NetBSD SuperH ports (evbsh3, dreamcast, hpcsh, landisk) aren&#x27;t horribly active, but they don&#x27;t need to be - they run, and they run well. I have a NetBSD&#x2F;landisk pkgsrc build machine which has been compiling continuously without any issues for more than a year.<p>We have quite a collection of SuperH binary packages:<p><a href="http:&#x2F;&#x2F;cdn.netbsd.org&#x2F;pub&#x2F;pkgsrc&#x2F;packages&#x2F;NetBSD&#x2F;sh3el&#x2F;9.0_2021Q3&#x2F;All&#x2F;" rel="nofollow">http:&#x2F;&#x2F;cdn.netbsd.org&#x2F;pub&#x2F;pkgsrc&#x2F;packages&#x2F;NetBSD&#x2F;sh3el&#x2F;9.0_2...</a>
rektideover 3 years ago
supposedly the j-core open core (sh compatible) isnt totally dead. the main patents seem to have run out, so implementation ought be ok. but definitely havent seen what the hopeful roadmap pitched happen: <a href="https:&#x2F;&#x2F;j-core.org&#x2F;roadmap.html" rel="nofollow">https:&#x2F;&#x2F;j-core.org&#x2F;roadmap.html</a>
评论 #29466033 未加载
评论 #29464273 未加载
malkiaover 3 years ago
Wow... dreamcast... CodeWarrior - OMG... RUN FOR YOUR LIVES....