From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 314 invoked by alias); 12 Feb 2014 09:54:04 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 32761 invoked by uid 89); 12 Feb 2014 09:54:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.98.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-qc0-f180.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=rkEw5uwxms5RIHozfsI6lvsaHjceq1TYbvqJVlWsl+g=; b=jBpSPXBvg0QMdN+zxjK7dnYlo0mPe33868GvdriWdryVzgc52M/eZbb5Su8UoLJIrv a7gAdqAvpkhj6/1/DmCoif5e52AMNit3g05+xraidi697V1v7Zq1Z0+NYKXDU70fY2df ks+2axnevtBrQ8uAx0thqdbbL0UP455t8yLaBlmM69UHRbqhBiyAaR2F7bfZzSM+3RS0 jawJlBVWC1E+7V87as8EU4p3a1MzONXNZRpdeFL8wGY9qfqJTvEuUcqB3MK2nc3xFKBO 7IZnC3AnaA7yr80ag3z81rw2NjnOUlAziITnfnu/dg33nw/2GomP41ZuUsq8mJZx49n9 WOzg== MIME-Version: 1.0 X-Received: by 10.224.29.131 with SMTP id q3mr22689514qac.62.1392198839314; Wed, 12 Feb 2014 01:53:59 -0800 (PST) In-Reply-To: <1392166363.29764.79.camel@surprise> References: <1392166363.29764.79.camel@surprise> Date: Wed, 01 Jan 2014 00:00:00 -0000 X-Google-Sender-Auth: RsScHwCAspQWNopvwdzjnRpu51Q Message-ID: Subject: Re: Simple install hook From: Philip Herron To: David Malcolm Cc: gcc patches , jit@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2014-q1/txt/msg00037.txt.bz2 On 12 February 2014 00:52, David Malcolm wrote: > On Tue, 2014-02-11 at 16:51 +0000, Philip Herron wrote: > [adding the jit@gcc.gnu.org ML to the CC] > >> Added install hook: > > Thanks! > > I don't know that this is needed for a 3-line patch, but have you done > the copyright assignment paperwork for GCC contribution? (I hope to > merge my branch into gcc trunk at some point). [Also, I'd love to have > more, larger, patches from you for the jit branch!] Yep i still have GCC copyright assignment. > Excellent! Looks promising - though it looks like the backend is all > stubbed out at the moment. Yeah only got started on it yesterday. Just need something to work with the jit api to test and look to add features for. > > Note that the JIT API isn't frozen yet. I try to remember to add "API > change" to the subject line when posting my commits, but I don't always > remember. > Yeah good point. > Let me know if you have any questions on how the JIT API works - or > input on how it *should* work. > > FWIW I've been experimentally porting GNU Octave's LLVM-based JIT to > using libgccjit, and finding and fixing various issues in the latter on > the way - that's been driving a lot of the patches to the jit branch > lately. > Thats a good idea. >> Was also considering some kind of libopcodes work to assemble the code >> in memory instead of creating a .so in /tmp. Not sure if i know what i >> am doing enough there but it might be more elegant for stuff using >> this front-end. > > My thinking here was that the core code of the GNU assembler could gain > the option of being built as a shared library, and having to isolate > state in a "context" object, and we could try to hack the two projects > into meeting in the middle. Large amount of work though (and a > different mailing list), hence the crude .so hack for now. > Yeah i was looking into it at the time and found, that trying to make gas compile to a .so was a bit of a nightmare i couldn't get the Makefile.am to regenerate its a funny autotools setup. But found aparently libopcodes: "The opcodes library contains functionality to assemble and disassemble human readable assembly language to and from raw machine code. " http://www.toothycat.net/wiki/wiki.pl?Binutils Might be something to look into. --Phil