Mercurial > hg > index.cgi
comparison docs/manual/x659.html @ 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 | fc166b3bbae3 |
children | a71206ed966c |
comparison
equal
deleted
inserted
replaced
454:ffdef8994f13 | 455:cad5937314cb |
---|---|
15 REL="PREVIOUS" | 15 REL="PREVIOUS" |
16 TITLE="Object Files and Sections" | 16 TITLE="Object Files and Sections" |
17 HREF="x595.html"><LINK | 17 HREF="x595.html"><LINK |
18 REL="NEXT" | 18 REL="NEXT" |
19 TITLE="Convenience Instructions" | 19 TITLE="Convenience Instructions" |
20 HREF="x795.html"></HEAD | 20 HREF="x800.html"></HEAD |
21 ><BODY | 21 ><BODY |
22 CLASS="SECTION" | 22 CLASS="SECTION" |
23 BGCOLOR="#FFFFFF" | 23 BGCOLOR="#FFFFFF" |
24 TEXT="#000000" | 24 TEXT="#000000" |
25 LINK="#0000FF" | 25 LINK="#0000FF" |
57 ><TD | 57 ><TD |
58 WIDTH="10%" | 58 WIDTH="10%" |
59 ALIGN="right" | 59 ALIGN="right" |
60 VALIGN="bottom" | 60 VALIGN="bottom" |
61 ><A | 61 ><A |
62 HREF="x795.html" | 62 HREF="x800.html" |
63 ACCESSKEY="N" | 63 ACCESSKEY="N" |
64 >Next</A | 64 >Next</A |
65 ></TD | 65 ></TD |
66 ></TR | 66 ></TR |
67 ></TABLE | 67 ></TABLE |
196 ><DD | 196 ><DD |
197 ><P | 197 ><P |
198 >These pragmas enable convenience instructions extending the 6809 and 6309 | 198 >These pragmas enable convenience instructions extending the 6809 and 6309 |
199 instruction sets respectively. For more information, see | 199 instruction sets respectively. For more information, see |
200 <A | 200 <A |
201 HREF="x795.html" | 201 HREF="x800.html" |
202 >Section 3.11</A | 202 >Section 3.11</A |
203 >.</P | 203 >.</P |
204 ></DD | 204 ></DD |
205 ><DT | 205 ><DT |
206 >index0tonone</DT | 206 >index0tonone</DT |
395 >It should be noted that the presence or absence of this pragma | 395 >It should be noted that the presence or absence of this pragma |
396 will not change the correctness of the generated code unless cycle counts | 396 will not change the correctness of the generated code unless cycle counts |
397 or byte counts are critical (which they usually are not). It also will | 397 or byte counts are critical (which they usually are not). It also will |
398 not override the operand size override prefixes (< and >). It only | 398 not override the operand size override prefixes (< and >). It only |
399 applies when the assembler is left to guess what the operand size is.</P | 399 applies when the assembler is left to guess what the operand size is.</P |
400 ></DD | |
401 ><DT | |
402 >operandsizewarning</DT | |
403 ><DD | |
404 ><P | |
405 >Enabling this pragma will cause LWASM to show a warning when it | |
406 detects that a smaller addressing mode could be used for an instruction. | |
407 This is particularly useful for finding places where long branches are used | |
408 where short branches could be used instead. It will also show the warnings | |
409 for indexing offsets (regardless of whether the operand size is | |
410 forced).</P | |
411 ><P | |
412 >As of LWASM 4.16, no other checks are performed.</P | |
400 ></DD | 413 ></DD |
401 ><DT | 414 ><DT |
402 >qrts</DT | 415 >qrts</DT |
403 ><DD | 416 ><DD |
404 ><P | 417 ><P |
505 ><TD | 518 ><TD |
506 WIDTH="33%" | 519 WIDTH="33%" |
507 ALIGN="right" | 520 ALIGN="right" |
508 VALIGN="top" | 521 VALIGN="top" |
509 ><A | 522 ><A |
510 HREF="x795.html" | 523 HREF="x800.html" |
511 ACCESSKEY="N" | 524 ACCESSKEY="N" |
512 >Next</A | 525 >Next</A |
513 ></TD | 526 ></TD |
514 ></TR | 527 ></TR |
515 ><TR | 528 ><TR |