Welcome, Guest. Please login or register.

Author Topic: I don't think I can learn C....  (Read 10453 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline N7VQM

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 272
    • Show all replies
Re: I don't think I can learn C....
« on: April 02, 2003, 10:20:39 PM »
I used MS VC++ to compile the code.

The obj file length is 2015 bytes.
The first exe I VC generated was about 36K long.  With size optimization, it was 32303 bytes.  After some tinkering, I got it down to 28Kb.  

Then, just to be cheeky, I ran it thru PECompact V1.32.  That got it down to 13824 bytes.  Yeah....I know that's cheating! :-D
\\"...an error of 1 is much less significant in counting the population of the Earth than in counting the occupants of a phone booth.\\" - Michael T. Heath, Scientific Computing...
 

Offline N7VQM

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 272
    • Show all replies
Re: I don't think I can learn C....
« Reply #1 on: April 04, 2003, 05:45:50 AM »
Quote

Atheist wrote:

I ask because, on win(lose)dohs, if you go to the trouble of writing IMPRESSIVE code, it still bites you in the end.


One doesn't always get bitten.  

For example, my portion of my senior project was a Win32 program to control WinAmp.  The user interacts with WinAmp thru a touchscreen LCD connected to a serial port via an RF link.  I found similar projects to control WinAmp thru a game port.  The smallest of those I found had a 300KB executable file and all the really did was allow you to send the basic commands like play, stop and FF/RR.  My program gives you control over those plus will send the name of the track playing, navigate playlists (with names) and had rudimentary support for manipulating WinAmp's equalizer.  

Based on the size of the other programs I found, I thought mine would be in the neighborhood of 500KB.  Imagine my and my partners surprize when the final executable was only 28KB.
\\"...an error of 1 is much less significant in counting the population of the Earth than in counting the occupants of a phone booth.\\" - Michael T. Heath, Scientific Computing...
 

Offline N7VQM

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 272
    • Show all replies
Re: I don't think I can learn C....
« Reply #2 on: April 04, 2003, 05:48:10 AM »
Quote

iamaboringperson wrote:
im not sure what that code was... but it reminds me of some code i saw in a magazine once that decoded some kind of DIVX or DVD encoding, that was said to be unbreakable!


You're probably thinking about CSS and DeCSS.  I find it amusing that you can buy a t-shirt with DeCSS in PERL silkscreened on it.  I am a circumvention device....
\\"...an error of 1 is much less significant in counting the population of the Earth than in counting the occupants of a phone booth.\\" - Michael T. Heath, Scientific Computing...