Article View: comp.arch
Article #101Re: Concertina II Update
From: Anton Ertl
Date: Wed, 14 Oct 2026 07:29
Date: Wed, 14 Oct 2026 07:29
37 lines
3062 bytes
3062 bytes
Thomas Koenig <tkoenig@netcologne.de> writes: >Different implementations treat this differently. The POWER ISA 3.1 >(POWER10), which introduced 64-bit instructions, forbids them when >they cross a cache line and just insert a NOP. They didn't want to >add the logic to handle that case, and if the ABI specifies that >functions are always aligned on a cache line (which makes sense) >then the assembler can handle that. This will complicate not only assemblers, but also JIT compilers. And it means that code-copying compilers (whether plain code-copying like Gforth or copy-and-patch compilers like what the CPython people are working at) will not work, because they know little about the instructions in the code fragments they copy. Potential solutions: 1) Disable code-copying for Power and fall back to the interpreter. 2) Compile at least the copied code fragments for Power <3.1, avoiding the problem. 3) On Power, align each fragment you copy to the alignment it has in the original location, using noops for padding. Option 2 probably dominates over 3 for both ease of implementation and performance. Option 1 is slightly easier to implement than Option 2. I expect that, just as with S/360's alignment restrictions and Power's original alignment restrictions in little-endian mode (they were smart enough not to require alignment in big-endian mode), this alignment restriction will eventually be lifted. But the existing hardware with the alignment limitation will mean that this bad idea will have to be worked around for several decades after they fix it. - anton -- 'Anyone trying for "industrial quality" ISA should avoid undefined behavior.' Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID:
<2026Oct14.092917@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<6acae6db.8174359@news.eternal-september.org> <1791754487-5857@newsgrouper.org> <6acc502d.12049968@news.eternal-september.org> <1791926696-5857@newsgrouper.org> <11an6qj$17f9f$1@dont-email.me> <11an9g0$188ao$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.arch Subject: Re: Concertina II Update Date: Wed, 14 Oct 2026 07:29:17 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 37 Message-ID: <2026Oct14.092917@mips.complang.tuwien.ac.at> References: <6acae6db.8174359@news.eternal-september.org> <1791754487-5857@newsgrouper.org> <6acc502d.12049968@news.eternal-september.org> <1791926696-5857@newsgrouper.org> <11an6qj$17f9f$1@dont-email.me> <11an9g0$188ao$1@dont-email.me> Injection-Date: Wed, 14 Oct 2026 07:50:24 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1317364"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195rDj2q+6LsPq55e7zWCO4"; posting-host="4798f8a33d7cba4f1cfb66046bec21f9" Cancel-Lock: sha1:mxGckLCiV6edSYqtLvxyI38Yg2U= sha256:2ZhRpt/W6cS+VZ5meatQv115OGZjltleqY0VDlOOwJY= sha1:yAgg8TQN64uUsj8s6NhRppsRP70= sha256:GgaNjI+BOiBcCX19xYPAGYLN3VzrL/wCsJGeM3AWkNE= X-newsreader: xrn 10.11