pouët.net

Go to bottom
GC Masher by Fit [web]
[nfo]
screenshot added by Marq on 2005-08-11 08:56:50
platform :
type :
release date : august 2005
  • 9
  • 1
  • 0
popularity : 60%
 60%
  • 0.90
alltime top: #9046
added on the 2005-08-10 23:42:38 by Marq Marq

popularity helper

increase the popularity of this prod by spreading this URL:

or via: facebook twitter pinterest tumblr

comments

Just a little piece of code that helps you compress 4k intros better by trying out several command line parameters in a brute force manner. Mostly targeted at Unix people but should be easily adapted to other purposes and platforms as well. Had I coded this before Asm'05 I would have saved 35 bytes at least...
added on the 2005-08-10 23:45:25 by Marq Marq
marq mä rakastan sua
rulez added on the 2005-08-11 08:37:52 by waffle waffle
Great idea, thanks for sharing it! This will save many people many precious bytes. And I think this could also be used to test different versions of gcc :-)
rulez added on the 2005-08-11 16:42:57 by 0xtob 0xtob
Whoa... after a hard day of crunching I managed to squeeze "Make it 4k" from 4096 to 4024 bytes. The preliminary run for "Je regrette" managed to shave it from 4077 to 4003. Easy bytes for patient people ;v)

A pretty good set of flags for GCC 3.2 seems to be (depending on the actual code):
-O -fno-inline -fexpensive-optimizations -fno-peephole -fforce-mem -fno-defer-pop -fno-keep-static-consts -fshort-double -fmerge-all-constants -fstrength-reduce -mcpu=i386 -mpreferred-stack-boundary=2 -ffast-math

Feel free to comment. Beware that once you use short-double you can't call external libs with double parameters. Inlined math functions work fine, however.
added on the 2005-08-12 11:08:52 by Marq Marq
simple and useful :)
rulez added on the 2005-08-13 22:03:35 by slack slack
Good job guy ;)
rulez added on the 2005-08-14 13:43:01 by Spewk Spewk
very interesting :) Maybe I'll try some 4k coding in the near future :)
rulez added on the 2006-01-06 02:30:04 by Nuclear Nuclear
as slack said "simple and useful"
thx marq :)
rulez added on the 2008-07-10 19:52:33 by pera pera
Great idea and a good starting point for a more advanced tool.

You can easily script it so it looks for the best *compressed* code size.
You can also make it pass various -DDEFINE's so you may try all possible combinations of conditionally compiled code.

GCMasher rulez.
rulez added on the 2012-08-28 15:39:11 by RCL RCL
Thx. I used it with Makefile parameters to deal with compressed code, but left that part as homework for the users :)
added on the 2012-08-28 17:07:30 by Marq Marq
nice approach.
rulez added on the 2012-08-28 17:31:52 by las las
Nice tools, always saving dozen bytes! I added a progress bar for those are interested https://github.com/stfsux/egcm
rulez added on the 2013-04-05 14:18:35 by stfsux stfsux
Thanks for that - the code could indeed use some updating and a more complex example, but haven't gotten around to that...
added on the 2013-04-06 09:55:12 by Marq Marq

submit changes

if this prod is a fake, some info is false or the download link is broken,

do not post about it in the comments, it will get lost.

instead, click here !

[previous edits]

add a comment

Go to top