From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20201 invoked by alias); 12 Aug 2008 18:08:32 -0000 Received: (qmail 19971 invoked by uid 22791); 12 Aug 2008 18:08:30 -0000 X-Spam-Check-By: sourceware.org Received: from mail.artimi.com (HELO mail.artimi.com) (194.72.81.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Aug 2008 18:07:55 +0000 Received: from ALBATROSS ([192.168.1.150]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 Aug 2008 19:07:52 +0100 From: "Dave Korn" To: "'David Daney'" Cc: "'Tom Quarendon'" , , "'gcc help'" References: <48A1B059.1040400@quarendon.net> <48A1C606.8090109@avtrex.com> <004401c8fca2$b8980090$9601a8c0@CAM.ARTIMI.COM> <48A1CF11.2090608@avtrex.com> Subject: RE: Exception handling tables for function generated on the fly Date: Tue, 12 Aug 2008 18:41:00 -0000 Message-ID: <000601c8fca6$55e8f400$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <48A1CF11.2090608@avtrex.com> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00126.txt.bz2 David Daney wrote on 12 August 2008 18:58: >> Yes. The OP's question is "How do I generate .eh_frame data at runtime >> for an arbitrary function that has no throws and no catches but may call >> functions that throw". >> > > Which is why I recommended passing -funwind-tables, which does exactly > that. Passing it *to what*? There is no compiler involved: from the OP: > I want to magic up a function by writing (intel x86) instructions > into memory that does the same as if I'd done You appear to keep missing the "JIT" aspect of this question. JIT is not usually done by writing a C file and invoking the compiler using system() TTBOMK. cheers, DaveK -- Can't think of a witty .sigline today....