Hi,

On Tue, Oct 6, 2015 at 6:39 PM, Jerome Shidel <jer...@shidel.net> wrote:
>
>> On Oct 6, 2015, at 5:41 PM, Rugxulo <rugx...@gmail.com> wrote:
>>
>>> For example, right now V8 sits at about 30k total for the binaries. If they 
>>> were combined
>>>> and inserted into a shell, they would require about 10k. Between 800-1200 
>>>> bytes of each
>>>> is duplicated per tool for command line processing. (varies based on what 
>>>> it needs to parse)
>>
>> I already mentioned ARK to you, did you not take a look?
>>
>> ftp://ftp.sac.sk/pub/sac/pack/ark101.zip
>
> I really haven't had the time. But, if I decide to do a all-in-one version, I 
> would implement it
> by adjusting each tool to support being built into a single binary. Would not 
> be too difficult.
> Just time consuming. :)

Just for example, to clarify, ....

There are two small games written by one FPC core member: fpctris and
samegame. They are part of the "demos" included with FPC. Since they
are small and I was testing ppcross8086.exe anyways, I included them
on my MetaDOS floppy .img. They both use a single compilation "unit"
called gameunit, so they share some common code.

While I don't normally test everything, there is (also) "tiny" model
support. So I downloaded the latest v3.1 snapshot and rebuilt them for
tiny model and .COM format. They are roughly 21 kb and 19 kb sized,
once UPX'd (individually).

So I grabbed ARK (which admittedly I haven't used a lot in recent
years). It is GPLv2+. A simple "ark -r" adds both .COM files to the
main .EXE (which I easily renamed to GAMEUNIT.EXE). A quick compress
of that .EXE with UPX adds up to only 28 kb size (versus 35 kb total
otherwise).

Granted, it's probably not worth even worrying about in most cases,
but it does save some space. (Of course, you now have to run them like
"gameunit fpctris" or "gameunit samegame" instead of "fpctris" or
"samegame" by themselves, but that's no big problem.)

------------------------------------------------------------------------------
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to