From owner-freebsd-hackers Sun May 19 21:54:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from a.mx.everquick.net (a.mx.everquick.net [216.89.137.3]) by hub.freebsd.org (Postfix) with ESMTP id 09BAA37B403; Sun, 19 May 2002 21:54:42 -0700 (PDT) Received: from localhost (eddy@localhost) by a.mx.everquick.net (8.11.6/8.10.2) with ESMTP id g4K4sg709623; Mon, 20 May 2002 04:54:42 GMT X-EverQuick-No-Abuse: Report any e-mail abuse to Date: Mon, 20 May 2002 04:54:41 +0000 (GMT) From: "E.B. Dreger" To: Jonathan Mini Cc: freebsd-hackers@freebsd.org Subject: Re: any file --> symbol in .o file In-Reply-To: <20020519214105.K25907@stylus.haikugeek.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG JM> Date: Sun, 19 May 2002 21:41:05 -0700 JM> From: Jonathan Mini JM> Take a look at file2c. You'll need to run the source through JM> the compiler first, but that is easy to do with make. Hmmmm. Definitely produces the desired results for the simple case that I mentioned. In fact, more complex things (hash functions, tries, etc.) can be accomplished by writing a quick bin to perform the proper transform, then feeding that to file2c; a shell script can orchestrate everything. I guess I'll run with that for now. Off the top of my head, the only feature file2c can't provide is user-specified data alignment. (Unless, of course, someone corrects me and alerts me to a C preprocessor directive similar to assembly's ".align".) Thanks! -- Eddy Brotsman & Dreger, Inc. - EverQuick Internet Division Phone: +1 (316) 794-8922 Wichita/(Inter)national Phone: +1 (785) 865-5885 Lawrence ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Date: Mon, 21 May 2001 11:23:58 +0000 (GMT) From: A Trap To: blacklist@brics.com Subject: Please ignore this portion of my mail signature. These last few lines are a trap for address-harvesting spambots. Do NOT send mail to , or you are likely to be blocked. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message