On Jun 13, 6:15 pm, fungus <openglMYSO...@[EMAIL PROTECTED]
> wrote:
> On Jun 13, 6:44 pm, pera <gomesbas...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > About GLUT: (I'm in Linux) I tried with SDL (~11k) and GLX (14k), and
> > I get the most tiny binary with GLUT (7k) =)
> > striping (using sstrip) and compressing (and adding a tiny script to
> > uncrompress at begin) this binary have only 878bytes, and I'm not
> > using dlopen (LoadLibrary of linux).
>
> If you want really small you could start with
this:http://www.artlum.com/pub/simplegl_x.c
>
> The windows version is:http://www.artlum.com/pub/simplegl.c
>
> --
> <\___/>
> / O O \
> \_____/ FTB. Remove my socks for email address.
Making some little changes to your code (without rotating square,
main() to _start and return to asm("int $0x80;"::"a"(1),"b"(code));)
the binary size is 5825 bytes.
With GLUT the binary size is 1952 bytes to make the same black window.
For compile your and my source I use only this parameters "-lGL -lGLU -
Os -nostdlib -nostartfiles" and strip binarys using sstrip (from
http://www.muppetlabs.com/~breadbox/software/elfkickers.html).
Wolfgang: UPX is nice but in Linux you get best results using gzip
(please look my makefile in the comments of my source). I'm not using
dlopen and dlsym now because I didn't finish my intro yet, but
I'll ;-)
The GLUT window code: http://gomesbascoy.googlepages.com/window.c
Greetings


|