Oppolzer - Informatik / Blog


Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie

ASSEMBLER-L - Sortierung von Literalen

Subject:

Re: LARL vs. Literal Alignment

From:

Bernd Oppolzer <bernd.oppolzer@T-ONLINE.DE>

Reply-To:

IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>

Date:

2010.08.23 10:48:08


I believe that literals could be sorted by alignment requirement instead of
length, this way minimizing the needed padding bytes. That is, multiples of 8
first, then multiples of 4, then multiples of 2, then odd lenghts, that need to
be aligned on even addresses because of relative addressing, then "true" odds,
that dont have this special requirement.

Kind regards

Bernd



E.J. schrieb:
> It does seem like it could be useful if literals inherited the
> worst-case alignment requirements imposed by the instruction operand(s)
> that reference them. But, doing so could introduce some new issues.
> Literals are currently sorted by length. Aligning short literals on a
> halfword, fullword, doubleword or quadword boundary might require the
> assembler to insert a lot of "filler" bytes in the literal pool. Would
> that be acceptable?
>

Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie