<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello Mattias,</div><div dir="ltr"><br></div><div dir="ltr">On Thu, Jan 10, 2019 at 6:58 PM Mattias Gaertner via Pas2js <<a href="mailto:pas2js@lists.freepascal.org" target="_blank">pas2js@lists.freepascal.org</a>> wrote:</div><div dir="ltr">[...]</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Notes:<br>
Neither $PUSH, $POP nor the $optimizations directive is yet<br>
supported.<br></blockquote><div><br></div><div>Thanks for answering. I didn't know about missing support for push/pop directives. ☺</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
pas2js does not parse the asm block, so it has no idea what it uses.<br></blockquote><div><br></div><div>You already alerted me (via mantis) about this compiler behavior regarding asm blocks, but the compiler should provide some option to disable it in specific units without disabling the entire compiler optimization.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
At the moment you must use some dummy code like "if false then<br>
reference..." to tell the compiler which identifiers are used.<br>
<br>
Mattias</blockquote></div><div><br></div><div>Hm... thanks for suggesting, but I'll not use it. 😀 I'm looking for optimizations, this workaround would grows the code.</div><div><br></div><div>It would be nice some keyword (e.g: <b><i>volatile</i></b>), directive and/or some special comment like "{%no-optimize}" to disable the optimization in specific unit parts. Any unconditional compiler behavior that removes things from the programmer code maybe will cause serious problems in large applications. Just my 2 cents.</div><div><br></div>--<br><div dir="ltr" class="gmail-m_-5473658640970228259gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div></div></div></div></div>