We are working on a version of our SwiftX cross-compiler that will do
this. It actually works, and is used to build most of the SwiftForth
kernel, but needs more work to be able to handle Windows features.
The problem with "stripping unused code" is that a lot of the code in
question _is_ used, just not by your application; it's hard for an
automatic tool to make this judgement.
I'm afraid at this point we can't give you a timetable for having this
available, but we're making note of your interest!
Cheers,
Elizabeth
At 05:09 PM 11/28/2000 -0800, you wrote:
>I know exactly what you are talking about here. I was used to 'clone'
>compiling forth programs using JForth on the Amiga platform. It cleverly
>could strip out any unused words, get rid of dictionary word headers, and
>make programs as small as 10k bytes! SwiftForth really needs this. If I
>ever get the time, I may try to write a clone compiler myself. But Forth,
>Inc should seriously think about adding this as a core feature. Let's
>continue to make pleas to them about this.
>
>Bob
>----- Original Message -----
>From: <mailto:fcebcab_at_ciccp.es>Federico de Ceballos
>To: <mailto:sftalk_at_forth.com>sftalk_at_forth.com
>Sent: Tuesday, November 28, 2000 1:42 AM
>Subject: [sftalk] Saving a small program
>
>I'd like to know details about saving the image of a program to
>disk.
>
>I want to prepare a set of small utilities using SwiftForth. If
>I use the full environment, INCLUDE my code, patch 'MAIN and do a
>PROGRAM I get .EXE files bigger than 400kB.
>
>As my code doesn't take advantage of the full features of the
>environment and it can be compiled with just the KERNEL file, I
>wonder whether it is possible to write the .EXE file directly
>from there.
>
>The result would be around 50-60kB, so several files could be
>carried around in a floppy.
>
>Thanks,
>
>Federico de Ceballos
================================================
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-372-8493
111 N. Sepulveda Blvd. #300 Fax: +1 310-318-7130
Manhattan Beach, CA 90266
http://www.forth.com
"Forth-based products and Services for real-time
applications since 1973."
================================================
Received on Tue Nov 28 2000 - 17:40:35 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 08-Feb-2012. Archive updated nightly.