Liste des Groupes | Revenir à c arch |
On 2025-03-23 8:12 a.m., Marcus wrote:Den 2025-03-23 kl. 04:06, skrev Robert Finch:On 2025-03-22 11:04 a.m., Thomas Koenig wrote:Marcus <m.delete@this.bitsnbites.eu> schrieb:
Consider stack pointer displacements:: local x is always [SP,offset(X)]That is a very good idea. It is the same thing almost as using aIt does not quite work yet. Constants are placed and code is moved,>
but the linked program does not have the correct references yet.
>
Experimental, but looking like things will work.
>
Although I have not tried any of these techniques, here are my thoughts.
>
Why not always place the constant next to (right after) the instruction
that references it, instead of at an offset within the cache line?
>
variable length instruction.
>
LB650 uses a smaller constant packet (16-bits) than the instruction. So,
instructions would need to be able to be aligned at 16-bit boundaries.
LB650 instruction are fixed 32-bit. There is also the possibility of
sharing the same constants, although slim.
Never let a done (but mediocre) solution prevent better solutions--The effect should be very similar, but now you have a simpler offsetI wish I had thought of that last night. But I have coded things now.
(it's always zero) and you eliminate the problem with having to keep
track of where the constants are in order to prevent the PC/IP from
running into the constant area.
>
Got the compiler / assembler going. The listings are a few percent
shorter than the PowerPC. It may be due to bugs yet. I think the
difference may be the PowerPC burns up bits using pairs of instructions
for high/low halves of the constant.
>
The vbcc compiler for the PowerPC was modified.
Les messages affichés proviennent d'usenet.