Mercurial > hg > index.cgi
comparison docs/manual.docbook.sgml @ 455:cad5937314cb
Add operandsizewarning pragma
Add operandsizewarning pragma that will raise warnings for certain operands
if the operand size could be smaller. (Long branch used instead of short
branch, for instance.)
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 16 Feb 2018 22:53:46 -0700 |
parents | 6b19418c465c |
children | e97f9a302c6a |
comparison
equal
deleted
inserted
replaced
454:ffdef8994f13 | 455:cad5937314cb |
---|---|
1968 <para>It should be noted that the presence or absence of this pragma | 1968 <para>It should be noted that the presence or absence of this pragma |
1969 will not change the correctness of the generated code unless cycle counts | 1969 will not change the correctness of the generated code unless cycle counts |
1970 or byte counts are critical (which they usually are not). It also will | 1970 or byte counts are critical (which they usually are not). It also will |
1971 not override the operand size override prefixes (< and >). It only | 1971 not override the operand size override prefixes (< and >). It only |
1972 applies when the assembler is left to guess what the operand size is.</para> | 1972 applies when the assembler is left to guess what the operand size is.</para> |
1973 | |
1974 </listitem> | |
1975 </varlistentry> | |
1976 | |
1977 <varlistentry> | |
1978 <term>operandsizewarning</term> | |
1979 <listitem> | |
1980 | |
1981 <para>Enabling this pragma will cause LWASM to show a warning when it | |
1982 detects that a smaller addressing mode could be used for an instruction. | |
1983 This is particularly useful for finding places where long branches are used | |
1984 where short branches could be used instead. It will also show the warnings | |
1985 for indexing offsets (regardless of whether the operand size is | |
1986 forced).</para> | |
1987 | |
1988 <para>As of LWASM 4.16, no other checks are performed.</para> | |
1973 | 1989 |
1974 </listitem> | 1990 </listitem> |
1975 </varlistentry> | 1991 </varlistentry> |
1976 | 1992 |
1977 <varlistentry> | 1993 <varlistentry> |