Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84276 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37091 invoked from network); 4 Mar 2015 07:44:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2015 07:44:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.182 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.182 mail-vc0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:51282] helo=mail-vc0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/B1-22753-AF7B6F45 for ; Wed, 04 Mar 2015 02:44:58 -0500 Received: by mail-vc0-f182.google.com with SMTP id hy4so2395089vcb.13 for ; Tue, 03 Mar 2015 23:44:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=bnf5z8JezY09SfhHg8OeyjcyhI+B0+XR0ZDk1hPi0kE=; b=VhH4+f2ac5iiY/JKAz0x09X7JnaGVuFH1q0U3TeXx6ifCxxkd3vtBsTcDG1X+9aWDQ tknUOGq+doc3GBDAPW6Pqdg0JwwzCXOLTuKO7JcM8jes61D7HdFeHbJOnkFDSUuM9cTP dn0RLajwHZOKp0DRka897szvJeVf1jI+qPvXw50RZWc5ZzoTXIGALMkJWed1sacTaeJJ Ab3I/vCk6k6yAHZfEp0tRAQSVpOnk9s45cTj+TP101Ig955yq5+ALZCVV6puQsThs928 t7Df1cefU/83GddJy1B5sOm35Jch5UGRRChNlH2IeYQ5PBXA7CB2eE87UzLZgRSIEMoq SIYA== X-Gm-Message-State: ALoCoQnmSBFtAK1dG9g3Z3jCVl5fI0pvZRyvkPa/g5ykqvtTA+HWuYmzVLmazdNVFeb4v6+CWstotPndAkimsWM6LKSKzbjbQ9uwLaQs0nVLN5MRFcMDpz/PRmhMmluq3uwRZ+G72/TqAFXXK4LEZrJ0Ntcvyz3UgA== MIME-Version: 1.0 X-Received: by 10.52.52.136 with SMTP id t8mr4530912vdo.49.1425455094927; Tue, 03 Mar 2015 23:44:54 -0800 (PST) Received: by 10.52.113.231 with HTTP; Tue, 3 Mar 2015 23:44:54 -0800 (PST) In-Reply-To: References: <54F08FF3.3040404@seld.be> <63262a9c0edd51bbf38df2a00c87340e@mail.gmail.com> <9977a20c9d756489f41e666d23c89e3f@mail.gmail.com> <9656140ae786d42e7b0da11dbd416a61@mail.gmail.com> Date: Wed, 4 Mar 2015 11:44:54 +0400 Message-ID: To: Anthony Ferrara Cc: Zeev Suraski , PHP Internals Content-Type: multipart/alternative; boundary=089e0115f04893ae6f051071a08e Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced From: dmitry@zend.com (Dmitry Stogov) --089e0115f04893ae6f051071a08e Content-Type: text/plain; charset=UTF-8 On Tue, Mar 3, 2015 at 10:55 PM, Anthony Ferrara wrote: > Dmitry, > > >> So, let's put that to the test, shall we. I compiled and ran the "JIT" > >> compiler (can we please stop calling it that, it's not). > > > > > > This is JIT! > > My apologies. I interpreted your reply to an earlier email that you > were doing all of the code generation at compile time, not at runtime. > I should have dug into the code a bit more earlier, but what I looked > at briefly before supported that interpretation. > > However after digging through zend_jit_llvm.cpp a bit more I can see > what you're doing now. You're basically AOT compiling from PHP > directly to LLVM bytecode (a file at a time), then using LLVM's VM and > jit compile to compile to native at runtime. Is that the correct > interpretation? > More or less right, except that term AOT is not correct. We compile PHP file when it's requested (just in time). We compile one PHP file at once, similar to what AOT compiler would do, but we compile directly to memory and then execute it, Thanks. Dmitry. > > Thanks, > > Anthony > --089e0115f04893ae6f051071a08e--