What can YOU do with 256 Bytes??

This is a discussion on What can YOU do with 256 Bytes?? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hmm...didnt know about the int 20h thing.......cool...

  1. #16
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Hmm...didnt know about the int 20h thing.......cool

  2. #17
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    if you were even more desperate for space, i reckon you could simply skip the exit altogether and hope that the next few instructions in memory will do it for you...

    but probably not.

  3. #18
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by ygfperson
    if you were even more desperate for space, i reckon you could simply skip the exit altogether and hope that the next few instructions in memory will do it for you...

    but probably not.
    Well as all the data and code are together in COM files, I would end up executing the Text "Hello World"...which basically looks like it will do nothing good

  4. #19
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    These 2 programs posted are quite slow. Do you usually do it this way to save on space?

  5. #20
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by face_master
    These 2 programs posted are quite slow. Do you usually do it this way to save on space?
    They are probably slow for a few reasons....They will be slow if you run them through the C++ program as it uses system() which is slow as sludge anyway....

    Also I guess that as windows doesnt allow programs to run interupts (the way dos progs print to screen, manage disks etc), it intercepts these calls and interprets them into something it prefers - either low level access the windows way, or in the case I guess the API call WriteConsole()......I can only guess this will make these progs slower than a normal Hello World that accesses the API funcs to begin with

    I also read that COM files used to take up more memory space than some exe files when run in DOS (even though they are smaller on disk) but I dont have a clue if its the same run on windows....

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reverse Engineering on a Download file
    By c_geek in forum C Programming
    Replies: 1
    Last Post: 03-22-2008, 04:15 PM
  2. Page File counter and Private Bytes Counter
    By George2 in forum Tech Board
    Replies: 0
    Last Post: 01-31-2008, 03:17 AM
  3. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  4. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 11:36 AM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 02:54 PM

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