From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30966 invoked by alias); 16 Mar 2006 21:37:53 -0000 Received: (qmail 30958 invoked by uid 22791); 16 Mar 2006 21:37:53 -0000 X-Spam-Check-By: sourceware.org Received: from imf18aec.mail.bellsouth.net (HELO imf18aec.mail.bellsouth.net) (205.152.59.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Mar 2006 21:37:51 +0000 Received: from ibm59aec.bellsouth.net ([68.209.114.20]) by imf18aec.mail.bellsouth.net with ESMTP id <20060316213749.UCEE17173.imf18aec.mail.bellsouth.net@ibm59aec.bellsouth.net> for ; Thu, 16 Mar 2006 16:37:49 -0500 Received: from [192.168.12.31] (really [68.209.114.20]) by ibm59aec.bellsouth.net with ESMTP id <20060316213746.KOG8237.ibm59aec.bellsouth.net@[192.168.12.31]>; Thu, 16 Mar 2006 16:37:46 -0500 Message-ID: <4419DAA2.8070708@growthmodels.com> Date: Thu, 16 Mar 2006 21:37:00 -0000 From: Heitzso User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) MIME-Version: 1.0 To: Daniel Avalle Gonzalez CC: gcc-help@gcc.gnu.org Subject: Re: Using a compiler from a program References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg00122.txt.bz2 Silly memories .... early in web at CDC for data retrieval over the web someone wrote a program such that when a CGI request came it it wrote a custom program in C, compiled it, and ran it to generate the HTML that was sent back to the user. That code ran for a long time on a single CPU 200mhz Pentium server. Overhead to do all of that was a second or two. Not too shabby, considering. Of course this predates PHP, ASP, Java, et al. And its design was crude. So nothing you could leverage. Good luck. >Hello, excuse my english. I want to create a program that generates >code in c++, and later it compiles to code machine for its later >execution from the own program or to create a library. I want to make >this without using a external programs calls, but using a library or >functions designed for it. > >My question is if gcc have any that makes this function or if exist >any alternative library or utility that make the same process to >create code machine of dynamic form for its later execution. > >Thanks. > >