{"id":2628,"date":"2015-07-01T21:07:12","date_gmt":"2015-07-01T13:07:12","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2628"},"modified":"2015-07-01T21:07:12","modified_gmt":"2015-07-01T13:07:12","slug":"qscript-%e4%b8%80%e4%b8%aa%e5%8e%9f%e5%9e%8b%e9%aa%8c%e8%af%81%e7%a8%8b%e5%ba%8f%e5%af%b9%e6%af%94%e7%bb%93%e6%9e%9c","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2628","title":{"rendered":"[QScript] &#8211; \u4e00\u4e2a\u539f\u578b\u9a8c\u8bc1\u7a0b\u5e8f\u5bf9\u6bd4\u7ed3\u679c"},"content":{"rendered":"<p>QScript \u76ee\u524d\u8fd8\u53ea\u662f\u955c\u4e2d\u82b1\uff0c\u4f46\u5e76\u4e0d\u59a8\u788d\u6211\u4eec\u5148\u53bb\u770b\u770b\u5b83\u7684\u672a\u6765\u3002\u4eca\u5929\u4e2d\u5348\u60f3\u5230\u4e00\u4e2a\u8bbe\u8ba1\u65b9\u6848\uff0c\u4e0b\u5348\u8fdb\u884c\u4e00\u4e2a\u539f\u578b\u7684\u7f16\u7801\u8bbe\u8ba1\u548c\u6d4b\u8bd5\uff0c\u5f97\u51fa\u7684\u7ed3\u679c\u5f88\u4ee4\u6211\u6b23\u559c\u3002<\/p>\n<p>\u6d4b\u8bd5\u53ea\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6574\u6570\u5faa\u73af 100 \u4e07\u6b21\uff0c\u5bf9\u5e94\u7684\u4ee3\u7801\u53ef\u4ee5\u7528 Pascal \u6216 C++ \u8868\u793a\u5982\u4e0b\uff1a<\/p>\n<p>\u3010Pascal\u3011<\/p>\n<pre class=\"lang:delphi decode:true\">var\r\n  I:Integer;\r\nbegin\r\nI:=0\r\nwhile I&lt;1000000 do\r\n   Inc(I);\r\nend;\r\n<\/pre>\n<p>\u3010C++\u3011<\/p>\n<pre class=\"lang:delphi decode:true \">int I=0;\r\nwhile(I&lt;1000000)\r\n   I++;\r\n<\/pre>\n<p>\u5bf9\u6bd4\u6d4b\u8bd5\u90fd\u4e0d\u5305\u62ec\u89e3\u91ca\u5668\u7684\u7f16\u8bd1\u65f6\u95f4\uff0c\u53ea\u770b\u8fd0\u884c\u6548\u7387\u3002\u53c2\u4e0e\u6bd4\u8f83\u7684\u4e09\u4e2a\u89e3\u91ca\u5668\u5206\u522b\u662f QScript\u3001Jedi 3 \u4e2d\u5e26\u7684 jvInterpreter \u548c PaxCompiler 4.2\uff1a<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/07\/QScriptCompare.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2629 size-medium\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/07\/QScriptCompare-300x243.png\" alt=\"QScriptCompare\" width=\"300\" height=\"243\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/07\/QScriptCompare-300x243.png 300w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/07\/QScriptCompare-1024x828.png 1024w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/07\/QScriptCompare.png 1217w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u5f97\u51fa\u7684\u7ed3\u8bba\u6211\u6bd4\u8f83\u6ee1\u610f\uff1a<\/p>\n<p>\u9996\u5148\uff0c\u53ef\u4ee5\u80af\u5b9a\u7684\u7ed3\u8bba\u662f\u4e0e\u539f\u751f\u76f4\u63a5\u7f16\u8bd1\u7684\u673a\u5668\u4ee3\u7801\u6ca1\u5f97\u6bd4\uff0c\u4ffa\u4e5f\u4ece\u6ca1\u6562\u6307\u671b\u8d85\u8fc7\u3002<\/p>\n<p>\u5176\u6b21\uff0cQScript \u6210\u4e3a\u4e09\u4e2a\u89e3\u91ca\u5668\u4e2d\u6267\u884c\u901f\u5ea6\u6700\u5feb\u7684\u4e00\u4e2a\uff0c\u901f\u5ea6\u5206\u522b\u8fbe\u5230\u4e86 Jedi 3 \u7684 345 \u500d\u548c PaxCompiler \u768414.6\u500d\u3002\u6211\u539f\u6765\u7684\u9884\u671f\u662f\u63a5\u8fd1 PaxCompiler \u8fd9\u4e2a\u53f7\u79f0 Delphi \u4e0b\u6700\u5feb\u7684\u89e3\u91ca\u5668\u5c31\u53ef\u4ee5\u4e86\uff0c\u5b9e\u9645\u7ed3\u679c\u8fdc\u8d85\u6211\u7684\u9884\u671f\u3002<\/p>\n<p>\u7531\u4e8e\u4e0a\u9762\u7684\u7ed3\u679c\uff0c\u8ba9\u6211\u91cd\u62fe\u7ee7\u7eed\u7f16\u5199 QScript \u7684\u4fe1\u5fc3\uff0c\u76f8\u4fe1 QScript \u4f1a\u5728\u660e\u5e74\u5e26\u7ed9\u5927\u5bb6\u60ca\u559c\u3002\uff08\u4eca\u5e74\uff1f\u4eca\u5e74\u65e5\u7a0b\u5df2\u7ecf\u6392\u6ee1\u4e86\uff0c\u6ca1\u5de5\u592b\uff0c\u4e0d\u8981\u6254\u7816\u5934\u7ed9\u6211~~~~\u897f\u7ea2\u67ff\u4e5f\u4e0d\u8981~~~\uff09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>QScript \u76ee\u524d\u8fd8\u53ea\u662f\u955c\u4e2d\u82b1\uff0c\u4f46\u5e76\u4e0d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[145,69,8,21],"tags":[429,430],"class_list":["post-2628","post","type-post","status-publish","format-standard","hentry","category-android","category-c-builder","category-delphi","category-misc","tag-qscript","tag-430"],"views":4141,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2628"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2628\/revisions"}],"predecessor-version":[{"id":2630,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2628\/revisions\/2630"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}