Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch > #32226 > unrolled thread
| Started by | Jean-Marc Bourguet <jm@bourguet.org> |
|---|---|
| First post | 2015-12-28 15:50 +0100 |
| Last post | 2015-12-28 19:56 +0100 |
| Articles | 20 on this page of 32 — 15 participants |
Back to article view | Back to comp.arch
Agner's Proposal for an ideal extensible instruction set Jean-Marc Bourguet <jm@bourguet.org> - 2015-12-28 15:50 +0100
Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 07:12 -0800
Re: Agner's Proposal for an ideal extensible instruction set Piotr Wyderski <peter.pan@neverland.mil> - 2016-01-26 16:38 +0100
Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2016-01-29 12:10 -0800
Re: Agner's Proposal for an ideal extensible instruction set "James Van Buskirk" <not_valid@comcast.net> - 2015-12-28 09:48 -0700
Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 10:29 -0800
Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-28 23:01 +0100
Re: Agner's Proposal for an ideal extensible instruction set "James Van Buskirk" <not_valid@comcast.net> - 2015-12-28 16:25 -0700
Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-28 16:10 -0800
Re: Agner's Proposal for an ideal extensible instruction set "James Van Buskirk" <not_valid@comcast.net> - 2015-12-28 18:23 -0700
Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-28 19:41 -0800
Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-29 10:52 +0100
Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-29 02:22 -0800
Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-29 12:58 +0100
Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-29 12:16 -0800
Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-29 07:25 -0800
Re: Agner's Proposal for an ideal extensible instruction set Walter Banks <walter@bytecraft.com> - 2015-12-29 12:27 -0500
Re: Agner's Proposal for an ideal extensible instruction set Robert Wessel <robertwessel2@yahoo.com> - 2015-12-29 11:46 -0600
Re: Agner's Proposal for an ideal extensible instruction set paul wallich <pw@panix.com> - 2015-12-29 13:00 -0500
Re: Agner's Proposal for an ideal extensible instruction set mrs@kithrup.com (Mike Stump) - 2015-12-29 22:21 +0000
Re: Agner's Proposal for an ideal extensible instruction set anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-29 10:16 +0000
Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-29 10:49 +0100
Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-29 02:36 -0800
Re: Agner's Proposal for an ideal extensible instruction set "Paul A. Clayton" <paaronclayton@gmail.com> - 2015-12-28 09:23 -0800
Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 10:31 -0800
Re: Agner's Proposal for an ideal extensible instruction set Erik Trulsson <erikt@Update.UU.SE> - 2016-01-20 15:33 +0000
Re: Agner's Proposal for an ideal extensible instruction set Casper H.S. Dik <Casper.Dik@OrSPaMcle.COM> - 2016-01-20 15:39 +0000
Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-20 18:31 +0100
Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2016-01-20 11:14 -0800
Re: Agner's Proposal for an ideal extensible instruction set mrs@kithrup.com (Mike Stump) - 2016-01-26 03:36 +0000
Re: Agner's Proposal for an ideal extensible instruction set Stefan Monnier <monnier@iro.umontreal.ca> - 2016-01-20 16:44 -0500
Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-28 19:56 +0100
Page 1 of 2 [1] 2 Next page →
| From | Jean-Marc Bourguet <jm@bourguet.org> |
|---|---|
| Date | 2015-12-28 15:50 +0100 |
| Subject | Agner's Proposal for an ideal extensible instruction set |
| Message-ID | <87y4ce631a.fsf@news.bourguet.org> |
This may be interesting that discussion on existence of God ;-) http://agner.org/optimize/blog/read.php?i=421 Yours, -- Jean-Marc
[toc] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2015-12-28 07:12 -0800 |
| Message-ID | <25d4bb6d-e69f-40be-9b28-150f6b0e8f28@googlegroups.com> |
| In reply to | #32226 |
On Monday, December 28, 2015 at 7:50:12 AM UTC-7, Jean-Marc Bourguet wrote: > This may be interesting that discussion on existence of God ;-) > http://agner.org/optimize/blog/read.php?i=421 And, of course, at http://www.quadibloc.com/arch/ctwoint.htm I am working on an alternative to OpenRISC and RISC-V. I try to provide the code density and flexibility of CISC, and the speed and simplicity of RISC. But in addition, I offer way to get at DSP operation as well without having to switch modes - although I do have, in my current description, three modes of operation: prefixed length; prefixed length *and* explicit length; prefixed length, explicit length, and VLIW. Since the third mode provides modeless access to everything, though, it can stand alone. John Savard
[toc] | [prev] | [next] | [standalone]
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2016-01-26 16:38 +0100 |
| Message-ID | <n883t2$rrd$1@node2.news.atman.pl> |
| In reply to | #32227 |
Quadibloc wrote: > I try to provide the code density and flexibility of CISC, and the speed and > simplicity of RISC. But in addition, I offer way to get at DSP operation as > well without having to switch modes - although I do have, in my current > description, three modes of operation: prefixed length; prefixed length *and* > explicit length; prefixed length, explicit length, and VLIW. Don't you think that this is decades too late? Nowadays nobody cares about ISAs. Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2016-01-29 12:10 -0800 |
| Message-ID | <09546ab1-c139-42cb-86bd-c1ec619ceb55@googlegroups.com> |
| In reply to | #33149 |
On Tuesday, January 26, 2016 at 8:38:13 AM UTC-7, Piotr Wyderski wrote: > Don't you think that this is decades too late? > Nowadays nobody cares about ISAs. That may be. It looks like the PowerPC is satisfactory; I hope for an escape from the mess that is x86, John Savard
[toc] | [prev] | [next] | [standalone]
| From | "James Van Buskirk" <not_valid@comcast.net> |
|---|---|
| Date | 2015-12-28 09:48 -0700 |
| Message-ID | <n5rp07$c9f$1@dont-email.me> |
| In reply to | #32226 |
> "Jean-Marc Bourguet" wrote in message > news:87y4ce631a.fsf@news.bourguet.org... > http://agner.org/optimize/blog/read.php?i=421 Interesting that he chooses to mark the first word of an instruction with the size of the instruction rather than to mark each word of an instruction according to whether it's the first word of the instruction or not. Makes the ISA more like DNA which can be read 6 ways, if you don't count stuff like introns and selenocysteine.
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2015-12-28 10:29 -0800 |
| Message-ID | <191cd80e-bcdf-4dc5-9b95-fc49cad9c618@googlegroups.com> |
| In reply to | #32233 |
On Monday, December 28, 2015 at 9:48:38 AM UTC-7, James Van Buskirk wrote: > Interesting that he chooses to mark the first word of an instruction > with the size of the instruction rather than to mark each word of an > instruction according to whether it's the first word of the instruction > or not. Well, that _is_ the more commonly used method. And the latter method, while elegant, means that the following words of the instruction are one bit shorter than the word size, which does not fit well for immediate operands and the like. Incidentally, if you do mark each word of the instruction, marking it to indicate that it's the _last_ word of the instruction or not is better for some purposes, since then you don't need to fetch beyond the end of the instruction. John Savard
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2015-12-28 23:01 +0100 |
| Message-ID | <n5sbfn$nqe$1@speranza.aioe.org> |
| In reply to | #32233 |
James Van Buskirk wrote: >> "Jean-Marc Bourguet" wrote in message >> news:87y4ce631a.fsf@news.bourguet.org... > >> http://agner.org/optimize/blog/read.php?i=421 > > Interesting that he chooses to mark the first word of an instruction > with the size of the instruction rather than to mark each word of an > instruction according to whether it's the first word of the instruction > or not. Makes the ISA more like DNA which can be read 6 ways, if > you don't count stuff like introns and selenocysteine. > If you want to be able to use the second or third dword as an immediate, then you cannot reserve any bits to be used as a marker. Besides, IMHO being able to execute immediate data is of course a feature, not a bug: "The Story of Mel" Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | "James Van Buskirk" <not_valid@comcast.net> |
|---|---|
| Date | 2015-12-28 16:25 -0700 |
| Message-ID | <n5sg7n$9ud$1@dont-email.me> |
| In reply to | #32248 |
"Terje Mathisen" wrote in message news:n5sbfn$nqe$1@speranza.aioe.org... > If you want to be able to use the second or third dword as an immediate, > then you cannot reserve any bits to be used as a marker. Who sez? 2 bits from first dword, 31 each from the other two, I get 64 bits. Gotta do something like that because not being able to load a pointer in one shot is an abomination.
[toc] | [prev] | [next] | [standalone]
| From | Ivan Godard <ivan@millcomputing.com> |
|---|---|
| Date | 2015-12-28 16:10 -0800 |
| Message-ID | <n5sirr$ip3$1@dont-email.me> |
| In reply to | #32249 |
On 12/28/2015 3:25 PM, James Van Buskirk wrote: > "Terje Mathisen" wrote in message news:n5sbfn$nqe$1@speranza.aioe.org... > >> If you want to be able to use the second or third dword as an >> immediate, then you cannot reserve any bits to be used as a marker. > > Who sez? 2 bits from first dword, 31 each from the other two, I get 64 > bits. > Gotta do something like that because not being able to load a pointer in > one shot is an abomination. > You really going to use static addresses that can be loaded as literals? You might consider why load-time ASLR is used. https://en.wikipedia.org/wiki/Address_space_layout_randomization
[toc] | [prev] | [next] | [standalone]
| From | "James Van Buskirk" <not_valid@comcast.net> |
|---|---|
| Date | 2015-12-28 18:23 -0700 |
| Message-ID | <n5sn5q$f0$1@dont-email.me> |
| In reply to | #32250 |
"Ivan Godard" wrote in message news:n5sirr$ip3$1@dont-email.me... > You really going to use static addresses that can be loaded as literals? > You might consider why load-time ASLR is used. > https://en.wikipedia.org/wiki/Address_space_layout_randomization I thought that ASLR was at orthogonal trajectories to the immediate addresses. In Windows, an executable or DLL can get loaded anywhere so the OS must be capable of filling in any required pointers at load time anyhow. Must be fun on Alpha where the pointers are scattered across 4 instructions. Even PIE code gets offsets from PC in immediates, doesn't it?
[toc] | [prev] | [next] | [standalone]
| From | Ivan Godard <ivan@millcomputing.com> |
|---|---|
| Date | 2015-12-28 19:41 -0800 |
| Message-ID | <n5sv7s$j2n$1@dont-email.me> |
| In reply to | #32251 |
On 12/28/2015 5:23 PM, James Van Buskirk wrote: > > > "Ivan Godard" wrote in message news:n5sirr$ip3$1@dont-email.me... >> You really going to use static addresses that can be loaded as literals? > >> You might consider why load-time ASLR is used. > >> https://en.wikipedia.org/wiki/Address_space_layout_randomization > > I thought that ASLR was at orthogonal trajectories to the immediate > addresses. In Windows, an executable or DLL can get loaded > anywhere so the OS must be capable of filling in any required pointers > at load time anyhow. Must be fun on Alpha where the pointers are > scattered across 4 instructions. Even PIE code gets offsets from PC in > immediates, doesn't it? > An immediate address must be known no later than link time in order to be put in the code, whereas with ASLR the address to use is not known until load time at the earliest, and two concurrent runs of the same code will be running at different addresses.
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2015-12-29 10:52 +0100 |
| Message-ID | <n5tl5f$8o8$2@speranza.aioe.org> |
| In reply to | #32253 |
Ivan Godard wrote: > On 12/28/2015 5:23 PM, James Van Buskirk wrote: >> >> >> "Ivan Godard" wrote in message news:n5sirr$ip3$1@dont-email.me... >>> You really going to use static addresses that can be loaded as literals? >> >>> You might consider why load-time ASLR is used. >> >>> https://en.wikipedia.org/wiki/Address_space_layout_randomization >> >> I thought that ASLR was at orthogonal trajectories to the immediate >> addresses. In Windows, an executable or DLL can get loaded >> anywhere so the OS must be capable of filling in any required pointers >> at load time anyhow. Must be fun on Alpha where the pointers are >> scattered across 4 instructions. Even PIE code gets offsets from PC in >> immediates, doesn't it? >> > > An immediate address must be known no later than link time in order to > be put in the code, whereas with ASLR the address to use is not known > until load time at the earliest, and two concurrent runs of the same > code will be running at different addresses. > > Is that always true Ivan? I thought the linker could insert placeholders for any such immediate address data, and note them in some sort of fixup list for the loader. The loader would go through the fixup list and for each entry there, go into the code and patch/adjust the entry to match the actual load address. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | Ivan Godard <ivan@millcomputing.com> |
|---|---|
| Date | 2015-12-29 02:22 -0800 |
| Message-ID | <n5tmn7$do1$1@dont-email.me> |
| In reply to | #32255 |
On 12/29/2015 1:52 AM, Terje Mathisen wrote: > Ivan Godard wrote: >> An immediate address must be known no later than link time in order to >> be put in the code, whereas with ASLR the address to use is not known >> until load time at the earliest, and two concurrent runs of the same >> code will be running at different addresses. >> >> > Is that always true Ivan? > > I thought the linker could insert placeholders for any such immediate > address data, and note them in some sort of fixup list for the loader. > > The loader would go through the fixup list and for each entry there, go > into the code and patch/adjust the entry to match the actual load address. Yes, it can and that's the way you have to do it when the ISA has poor support for based addressing, as many early CPUs (and today's microcontrollers) did. However the relocation is expensive because it touches all the code, and multiple copies must run at the same relocated address or suffer double the code space demand. A modern machine design would use self-relative (and hence position independent) addressing for code, and dedicated or genreg base address registers for data, also position independent. With PIC code the code file only has to be mapped into the address space, but doesn't have to be brought to memory or cache as is required for relocation. While resolving a based address requires a trip through the AGU that a pointer literal does not, that advantage is only present when addressing scalars in global static memory, because the stack and heap must always use based addressing and non-scalar use (indexed and/or offset) needs the AGU anyway. Even for that case, usually the addressing mode that has neither index nor offset can be recognized in the decoder and the address is short-circuited around the AGU so pointer literals have no advantage there either.
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2015-12-29 12:58 +0100 |
| Message-ID | <n5tsgi$r8d$1@speranza.aioe.org> |
| In reply to | #32256 |
Ivan Godard wrote: > On 12/29/2015 1:52 AM, Terje Mathisen wrote: >> Ivan Godard wrote: > >>> An immediate address must be known no later than link time in order to >>> be put in the code, whereas with ASLR the address to use is not known >>> until load time at the earliest, and two concurrent runs of the same >>> code will be running at different addresses. >>> >>> >> Is that always true Ivan? >> >> I thought the linker could insert placeholders for any such immediate >> address data, and note them in some sort of fixup list for the loader. >> >> The loader would go through the fixup list and for each entry there, go >> into the code and patch/adjust the entry to match the actual load >> address. > > Yes, it can and that's the way you have to do it when the ISA has poor > support for based addressing, as many early CPUs (and today's My first introduction to PIC programming was when I started disassembling the very first PC viruses, they typically contained a CALL with relative offset zero, followed by a POP BX which would establish a pointer to the current code location. They typically didn't worry about messing up the not yet invented return stack predictors. :-) > microcontrollers) did. However the relocation is expensive because it > touches all the code, and multiple copies must run at the same relocated > address or suffer double the code space demand. Agreed. The ability to use the same library code from multiple programs at the same time, in order to save code space is nice. However, the size ratio between code and data has been changing for a long time, in the direction of more and more data, right? This means that many programs that used to use dynamic loading of library code have changed to static linking instead, mainly because that removes the worry about library updates that turns out to introduce incompatible changes. OTOH it also makes it impossible to update an older program when a (security) bug turns up in a library function. > > A modern machine design would use self-relative (and hence position > independent) addressing for code, and dedicated or genreg base address > registers for data, also position independent. With PIC code the code > file only has to be mapped into the address space, but doesn't have to > be brought to memory or cache as is required for relocation. I agree with you here as well, but I still believe large immediates are very nice to have, and that they are orthogonal to the PIC issue: If you want to make a direct call to a function located far away, you need a large immediate value to encode that target address: PIC or absolute address doesn't really matter. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | Ivan Godard <ivan@millcomputing.com> |
|---|---|
| Date | 2015-12-29 12:16 -0800 |
| Message-ID | <n5upha$d78$1@dont-email.me> |
| In reply to | #32259 |
On 12/29/2015 3:58 AM, Terje Mathisen wrote: > I agree with you here as well, but I still believe large immediates are > very nice to have, and that they are orthogonal to the PIC issue: > > If you want to make a direct call to a function located far away, you > need a large immediate value to encode that target address: > > PIC or absolute address doesn't really matter. Then (to me at least) you are arguing for large offsets, not large immediates; yes, a terminology quibble. Hereby defined: an immediate is usable as a stand-alone operand: ADD R5, 17; the 17 is an immediate. An offset is a component of an address that must be computed before it can be used: LOAD SP, 17; you have to add the 17 to the stack pointer to get an address. When the OP asked for full-sized immediates I took him to mean immediates in this sense, full pointer size, whereas when you ask to reach code that is far away I take that to be a call for large offsets, not absolute addresses as immediates. I do support your call for large offsets BTW; Mill has 32-bit offsets for all control flow ops. Conceivably a customer could have a DLL or load module that is bigger than 4GB, but we decided to let those people bust their code into separately compiled and loaded parts :-) Incidentally, the encoded representation of a Mill 32-bit offset can occupy as few as zero bits. We expect soon to have statistics on the distribution of encoded offset sizes in a largish corpus.
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2015-12-29 07:25 -0800 |
| Message-ID | <d6c9165f-f1b4-4ff7-9a55-170098cbda6f@googlegroups.com> |
| In reply to | #32256 |
On Tuesday, December 29, 2015 at 3:21:58 AM UTC-7, Ivan Godard wrote: > Yes, it can and that's the way you have to do it when the ISA has poor > support for based addressing, as many early CPUs (and today's > microcontrollers) did. Even with good support for based addressing, there's no reason to expect that the linker and loader know anything about randomly re-ordering the modules in the program. Instead, for a custom specialized thing like that, the installer program that puts the application on a particular user's computer would have to be customized to do that. One way would be to re-order the source modules, and include a compiler in the installer. John Savard
[toc] | [prev] | [next] | [standalone]
| From | Walter Banks <walter@bytecraft.com> |
|---|---|
| Date | 2015-12-29 12:27 -0500 |
| Message-ID | <n5ufps$edl$1@speranza.aioe.org> |
| In reply to | #32261 |
On 29/12/2015 10:25 AM, Quadibloc wrote: > On Tuesday, December 29, 2015 at 3:21:58 AM UTC-7, Ivan Godard > wrote: > >> Yes, it can and that's the way you have to do it when the ISA has >> poor support for based addressing, as many early CPUs (and today's >> microcontrollers) did. > > Even with good support for based addressing, there's no reason to > expect that the linker and loader know anything about randomly > re-ordering the modules in the program. Instead, for a custom > specialized thing like that, the installer program that puts the > application on a particular user's computer would have to be > customized to do that. > > One way would be to re-order the source modules, and include a > compiler in the installer. There are potentially quite a few advantages to doing this. Keeping the knowledge of the target in one place (compiler), addressing optimization and if needed mode detailed source level debugging information than many of the current compiler combinations give to the developer. w..
[toc] | [prev] | [next] | [standalone]
| From | Robert Wessel <robertwessel2@yahoo.com> |
|---|---|
| Date | 2015-12-29 11:46 -0600 |
| Message-ID | <sfh58b5eiuidcgporopv7kcuutsvtcudj9@4ax.com> |
| In reply to | #32261 |
On Tue, 29 Dec 2015 07:25:49 -0800 (PST), Quadibloc <jsavard@ecn.ab.ca> wrote: >On Tuesday, December 29, 2015 at 3:21:58 AM UTC-7, Ivan Godard wrote: > >> Yes, it can and that's the way you have to do it when the ISA has poor >> support for based addressing, as many early CPUs (and today's >> microcontrollers) did. > >Even with good support for based addressing, there's no reason to expect that >the linker and loader know anything about randomly re-ordering the modules in >the program. Instead, for a custom specialized thing like that, the installer >program that puts the application on a particular user's computer would have to >be customized to do that. > >One way would be to re-order the source modules, and include a compiler in the >installer. ASLR doesn't (usually) move around modules within an executable, it just loads all the executables (.exes, .dlls, etc.) at different, and random(-ish) addresses. Inter-executable fixups are handled more-or-less like always, with the one exception that multiple copies of an executable in different address spaces usually can no longer share all of their image in memory. In some systems, most of the fixups are on their own page(s), so only that needs to be different for each process.
[toc] | [prev] | [next] | [standalone]
| From | paul wallich <pw@panix.com> |
|---|---|
| Date | 2015-12-29 13:00 -0500 |
| Message-ID | <n5uho3$j1b$1@reader1.panix.com> |
| In reply to | #32261 |
On 12/29/15 10:25 AM, Quadibloc wrote: > On Tuesday, December 29, 2015 at 3:21:58 AM UTC-7, Ivan Godard wrote: > >> Yes, it can and that's the way you have to do it when the ISA has poor >> support for based addressing, as many early CPUs (and today's >> microcontrollers) did. > > Even with good support for based addressing, there's no reason to expect that > the linker and loader know anything about randomly re-ordering the modules in > the program. Instead, for a custom specialized thing like that, the installer > program that puts the application on a particular user's computer would have to > be customized to do that. > > One way would be to re-order the source modules, and include a compiler in the > installer. That's sorta what you're getting on mobile and some desktop machines with JIT (or sometimes slightly before or after JIT) compilation. Reordering would be just part of the mix for those systems. (One of the things that caught my attention was a description of just how fine-grained some of the compilation apparently is, with the intention of minimizing perceived lag: by profiling the code as it runs, a JIT javascript compiler can determine on a block-by-block level whether to stick with tokenized source, compile to bytecode or compile to native code, all while the page in question is being displayed/executed.) paul
[toc] | [prev] | [next] | [standalone]
| From | mrs@kithrup.com (Mike Stump) |
|---|---|
| Date | 2015-12-29 22:21 +0000 |
| Message-ID | <o054rt.14xL@kithrup.com> |
| In reply to | #32261 |
In article <d6c9165f-f1b4-4ff7-9a55-170098cbda6f@googlegroups.com>, Quadibloc <jsavard@ecn.ab.ca> wrote: >On Tuesday, December 29, 2015 at 3:21:58 AM UTC-7, Ivan Godard wrote: > >> Yes, it can and that's the way you have to do it when the ISA has poor >> support for based addressing, as many early CPUs (and today's >> microcontrollers) did. > >Even with good support for based addressing, there's no reason to expect that >the linker and loader know anything about randomly re-ordering the modules in >the program. You don't keep up do you? C++ virtually requires this. Most systems that supports C++, can do this. Indeed, Apple's linker sections off bytes from global symbol to global symbol, and swizzles them as it sees fit and has done for a very long time. It does this to order the ordering of these sections of code/data so that the program startup is linear and can be predicted and fetched easier from rotating magnetic media. For this to work, the linker _and_ loader both, need to be able to redo references.
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.arch
csiph-web