Making super-packed programs?

This is a discussion on Making super-packed programs? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; HI, I was wondering just how some people can pack so many things into a very small exe, for example ...

  1. #1
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020

    Making super-packed programs?

    HI,

    I was wondering just how some people can pack so many things into a very small exe, for example 30kb? Here is a site that offers downloads of small exes which display some pretti good graphics:

    http://www.farb-rausch.com/

    Anyone have idea on how to do that?

    ^.^

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    137
    They use really small font

  3. #3
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680
    They use very large dll

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    There are exe compressors that allow you to do squeeze down the executable size...but from downloading one of the files...I see that they are using COM files...not true exe files...

    With PE exe files, you have a DOS Stub.....then headers....then sections (these hold code, data, consts,relocation info,resources,debug info...etc)...also there's info for importing & exporting.......

    With com files you have very little...the code and data exist in the same place (usually code first followed by data)...they always load at a certain point in memory ...you have no import/export tables......you have no seperate space for resources....... basically....er...pretty basic!...As you cant import dlls easily, your stuck in DOS mode, so that's why you dont see many of them these days (also M$ stopped officially supporting them years ago so they are really legacy stuff)

    Me & ygf had a bit of a "smallest hello world" thing going once...he beat me.....but that's life....have a look here

  5. #5
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Hey,

    One more question. How did you get all those 0x65,0x6c,0x6c.....numbers? They are hex right? What do they contain ah?

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    >>One more question. How did you get all those 0x65,0x6c,0x6c.....numbers? They are hex right? What do they contain ah?

    I cheated.....I wrote a COM program in MASM, ran it through Turbo Debugger and got the opcodes there......

    There are variuos instructions (well..a few mov, lea and ints...and a ret in ygfs) and the various operands

    You can look up the codes on the web, and most decent references tell you the opcodes for each instruction (like in the Intel IA32 Docs)

    I assume ygf did the same as me (used a debugger).......if not, and he knows them from memory - then I fear him .....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making sprites
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 02-20-2010, 06:00 AM
  2. Communication between programs?
    By johny145 in forum Windows Programming
    Replies: 3
    Last Post: 06-01-2005, 10:14 PM
  3. Problem using java programs within C code
    By lemania in forum Linux Programming
    Replies: 1
    Last Post: 05-08-2005, 02:02 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 04:42 AM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21