![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0
![]() |
Newbie Question: C++ .EXEs.
Everybody starts off as a newbie, don't they?
Okay, I'm new to C++ (syntax is somewhat familiar, due to my experiences in Java and some other languages) and desperate to get the hang of it because I'm going on a competition in 5 days time * .Now, I need to ask is there anyway, I can reduce the size of C++'s .EXEs? Let me explain, the competition allows only a single diskette (that's 1.38 Mb) for participants to submit six EXE programs. The problem comes in when I import libraries. For example, all of the programs would definitely need to do some basic file IO (open, read, close, create, write, close, in that order). So when I include fstream, the EXE size will increase approximately by 120 Kb. Assuming that each program is 200 Kb, it'll fit nicely into the diskette. The whole thing that's bothering me is this: what if I'd need to import another library? I won't have an clues on what the tasks I'm supposed to do until the actual day of competition itself. So I'd need anyone who's experience in C++ to help me out a little, is there anyway I can reduce the size of the EXEs? Or is there a workaround so the file size won't be as big. The compiler I will be using is DJGPP (latest version; I downloaded it for the sake of the competition 2 days ago). Thanks for any help you'd give. * Just in case you're interested, I wasn't supposed to go for this competition because I lacked knowledge in C++ and Pascal (if they accepted Java, I wouldn't have worries already). My teacher-in-charge, however, submitted my name and told me that she did 8 days before the competition. So I'm kind of in a panic and desperate state now. |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
|
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0
![]() |
Quote:
Thanks for the link though, looks interesting! ![]() |
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Feb 2005
Posts: 18
Rep Power: 0
![]() |
I assume simply bringing the files in zipped wouldn't work? It's not an external program, as long as the computers you're working with either run Windows XP or have some sort of program already installed to deal with *.zip files.
|
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
It's not external software. You just run your application through it and it compresses it. You can't even tell it's decompressing when you run it.
|
|
|
|
|
|
#6 |
|
Newbie
|
If you want small .exe's right off the bat, this site may help
http://www.hailstorm.net/papers/smallwin32.htm *Edit, I apologize, but I did not check your compiler until AFTER I posted *smacks forehead* maybe this link will help http://download.mirror.ac.uk/sites/w...q/faq8_14.html
__________________
On and on.... Last edited by drewlander; Feb 21st, 2005 at 4:43 AM. |
|
|
|
|
|
#7 | |||
|
Newbie
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0
![]() |
Quote:
Quote:
Quote:
:p ![]() |
|||
|
|
|
|
|
#8 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Run your application through it before you go in then.
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() |
Last time i entered one of those types of competitions they simply allowed us to keep submitting programs one t at a time, wipe the disk and then put a new one on there. I'm sure the competition is more interested in your ability to program the programs than the ability to put 6 of them on a single disk... don't worry about it too much man.
__________________
|
|
|
|
|
|
#10 |
|
Programming Guru
![]() |
complain that in this day and age you should be able to use cdrw's?
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|