The code generator/fr: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: The code generator/fr
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Retour au contenu [[FPC internals/fr|FPC internals]] | |
| 2 | + | ||
| 3 | + | Avec la version 1.9.x de FPC, le générateur de code a été complétement réécrit pour aboutir à un compilateur ciblant plusieurs processeurs. | |
| 4 | + | ||
| 5 | + | ## Support MM | |
| 6 | + | ||
| 7 | + | Le générateur de code FPC prend en charge l'usage des registres multi-média tels qu'ils sont implémentés dans les processeurs modernes. | |
| 8 | + | ||
| 9 | + | ### L'opérande de mélange (*shuffle operand*) | |
| 10 | + | ||
| 11 | + | La plupart des unités prennent en charge aussi bien les opérations scalaires que vectorielles sur les registres multimédia. Pour distinguer ces différentes opérations, les méthodes MM de tcg prennent un soit-disant paramètre de mélange (*shuffle parameter*). Ce paramètre permet de spécifier comment les données sont traitées lors de la génération du code multi-média. | |
| 12 | + | ||
| 13 | + | ``` pascal | |
| 14 | + | pmmshuffle = ^tmmshuffle; | |
| 15 | + | { this record describes shuffle operations for mm operations; if a pointer a shuffle record | |
| 16 | + | passed to an mm operation is nil, it means that the whole location is moved } | |
| 17 | + | tmmshuffle = record | |
| 18 | + | { describes how many shuffles are actually described, if len=0 then | |
| 19 | + | moving the scalar with index 0 to the scalar with index 0 is meant } | |
| 20 | + | len : byte; | |
| 21 | + | { lower nibble of each entry of this array describes index of the source data index while | |
| 22 | + | the upper nibble describes the destination index } | |
| 23 | + | shuffles : array[1..1] of byte; | |
| 24 | + | end; | |
| 25 | + | ``` | |
| 26 | + | ||
| 27 | + | Prochain chapitre: [[FPC Internals/CPU Target/fr|Cible CPU]] | |
| 28 | + | ||
| 29 | + | --- | |
| 30 | + | *From the Free Pascal wiki, page "The code generator/fr", as it stood on 2021-01-02 after a change by E-ric, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
