Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 08, 2007 Stripper? | ||||
---|---|---|---|---|
| ||||
Probably an old newbie question: How can I reduce exe sizes? Is there a strip program like for gcc? As I haven't tried gdc, how small could I get for a simple "hello world"? |
February 08, 2007 Re: Stripper? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andreas Kochenburger | Andreas Kochenburger kirjoitti:
> Probably an old newbie question:
> How can I reduce exe sizes? Is there a strip program like for gcc?
> As I haven't tried gdc, how small could I get for a simple "hello world"?
On Linux you can use strip to reduce the size of gdc/dmd generated binaries. If they are still too big, there's always executable packers, such as upx. I guess there are similar programs on Windows.
|
February 08, 2007 Re: Stripper? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andreas Kochenburger | Reply to Andreas,
> Probably an old newbie question:
> How can I reduce exe sizes? Is there a strip program like for gcc?
> As I haven't tried gdc, how small could I get for a simple "hello
> world"?
IIRC the problem is that DMD/phobos uses static linking for just about everything. So if you use writef you pull in huge amounts of stuff, same for just about everything else. It's a fixable problem but not one I know how to fix.
I seem to remember that someone built tango into a .so but I could be wrong
|
February 08, 2007 Re: Stripper? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andreas Kochenburger | On Thu, 08 Feb 2007 19:01:36 +0100, Andreas Kochenburger wrote: > Probably an old newbie question: > How can I reduce exe sizes? Is there a strip program like for gcc? > As I haven't tried gdc, how small could I get for a simple "hello world"? For Windows systems, I use UPX. The binary distribution file of Bud has been packed with UPX and it is very effective. -- Derek (skype: derek.j.parnell) Melbourne, Australia "Justice for David Hicks!" 9/02/2007 10:35:47 AM |
February 09, 2007 Re: Stripper? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andreas Kochenburger | Andreas Kochenburger Wrote:
> Probably an old newbie question:
> How can I reduce exe sizes? Is there a strip program like for gcc?
> As I haven't tried gdc, how small could I get for a simple "hello world"?
I'd be surprised if "strip" itself didn't work, as it depends on binary file format .
In fact most of the binutils should work fine, no?
|
Copyright © 1999-2021 by the D Language Foundation