Talk About Network

Google





Graphics > OpenGL 3D API > Re: About glutI...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 12 Topic 4791 of 5061
Post > Topic >>

Re: About glutInit

by pera <gomesbascoy@[EMAIL PROTECTED] > Jun 13, 2008 at 07:39 PM

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
 




 12 Posts in Topic:
About glutInit
pera <gomesbascoy@[EMA  2008-06-11 21:29:10 
Re: About glutInit
Wolfgang Draxinger <wd  2008-06-12 10:04:06 
Re: About glutInit
pera <gomesbascoy@[EMA  2008-06-12 14:42:08 
Re: About glutInit
"jbwest" <jb  2008-06-12 05:02:23 
Re: About glutInit
Wolfgang Draxinger <wd  2008-06-13 09:52:41 
Re: About glutInit
pan <spank@[EMAIL PROT  2008-06-15 11:18:46 
Re: About glutInit
fungus <openglMYSOCKS@  2008-06-13 00:06:25 
Re: About glutInit
pera <gomesbascoy@[EMA  2008-06-13 09:44:55 
Re: About glutInit
Wolfgang Draxinger <wd  2008-06-13 21:06:10 
Re: About glutInit
fungus <openglMYSOCKS@  2008-06-13 14:15:43 
Re: About glutInit
pera <gomesbascoy@[EMA  2008-06-13 19:39:10 
Re: About glutInit
fungus <openglMYSOCKS@  2008-06-14 05:17:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 15:00:31 PST 2009.