Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 12th, 2004, 10:23 PM   #11
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
It is interesting to note that the -s option does operate differently than the strip command (though that command may have a different name on your system). It would appear that strip functions more efficiently from my brief review of it with Mr. Google.

Some people even find that with gcc compiled for windows that the -s option produces corrupt executable files... may have been a bug that has since been fixed though.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Nov 15th, 2004, 5:42 AM   #12
Dia_Byte
Programmer
 
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0 Dia_Byte is on a distinguished road
well it seems that i'm not the only one facing this problem and just as i expected it seems that the problem is in the header and i think that my problem will ne solved here, i will try every thing you gave me here hoping my problem wil be solved

----> a little note

one i compiled an assembly programs that prints the letter "x" and it gave me an executable of only a few bytes !
__________________
<removed by Administrator>
Dia_Byte is offline   Reply With Quote
Old Nov 16th, 2004, 12:16 PM   #13
lepricaun
Hobbyist Programmer
 
lepricaun's Avatar
 
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5 lepricaun is on a distinguished road
try using C code, this will give you a great difference too:

#include <stdio.h>

int main(void)
{
    printf('Hello World!");
    return 0;
}

only a few kb.


btw Dia_byte, i see you are on almost every forum i visit
__________________
http://www.white-scorpion.nl
lepricaun is offline   Reply With Quote
Old Nov 16th, 2004, 6:42 PM   #14
Riot
Newbie
 
Join Date: Oct 2004
Posts: 23
Rep Power: 0 Riot is on a distinguished road
I compiked it on dev_C++ and i got 76KB here is my code
 #include <iostream.h>

int main()
{

cout << "hello world\n";
return 0;
}

so it is just the compiler their is nothing you can do about it but deal with it or change compilers. sorry but that is all i can say to help you slove your problem.
Riot is offline   Reply With Quote
Old Nov 17th, 2004, 7:42 AM   #15
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
I'll try it on MS VS.net later in C, C++ and C#.
__________________

tempest is offline   Reply With Quote
Old Nov 17th, 2004, 12:30 PM   #16
alunw
Newbie
 
Join Date: Nov 2004
Posts: 3
Rep Power: 0 alunw is on a distinguished road
On Windows you will get a much smaller executable if you use C and link with msvcrt.dll
Check out libctiny.lib

LIBCTINY

For Linux check out

My WebpageA Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux
alunw is offline   Reply With Quote
Old Nov 18th, 2004, 9:35 AM   #17
Dia_Byte
Programmer
 
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0 Dia_Byte is on a distinguished road
Quote:
try using C code, this will give you a great difference too:


CODE

#include <stdio.h>

int main(void)
{
printf('Hello World!");
return 0;
}





only a few kb.


btw Dia_byte, i see you are on almost every forum i visit
well i'll have to say its thanks to you
because i entered your website and signed up for all forums you've givin me ...

i'll have to say thanks
__________________
<removed by Administrator>
Dia_Byte is offline   Reply With Quote
Old Nov 18th, 2004, 1:55 PM   #18
lepricaun
Hobbyist Programmer
 
lepricaun's Avatar
 
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5 lepricaun is on a distinguished road
Quote:
Originally posted by Dia_Byte@Nov 18 2004, 03:35 PM
Quote:
try using C code, this will give you a great difference too:


CODE

#include <stdio.h>

int main(void)
{
printf('Hello World!");
return 0;
}





only a few kb.


btw Dia_byte, i see you are on almost every forum i visit
well i'll have to say its thanks to you
because i entered your website and signed up for all forums you've givin me ...

i'll have to say thanks
hahaha, that explains a lot, i will see which others i can add to it, since i did not add all the forums i am a member of, but if you become a member of all of them you will have a busy day keeping up, it takes me about 2 hours per day reading and responding
__________________
http://www.white-scorpion.nl
lepricaun is offline   Reply With Quote
Old Nov 18th, 2004, 1:58 PM   #19
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
That's nothing - I used to spend 3 hours a day on Fantasy Essentials. I stopped once I realised my social life would improve dramatically if I got off the PC once in a while. And it worked.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 19th, 2004, 4:36 AM   #20
Dia_Byte
Programmer
 
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0 Dia_Byte is on a distinguished road


well actually i think that some forums are better than others that's why i'm not visiting all of them and i'm saving time,

personally i prefer Antionline over gulfteck
and Programming Forums over C4arab ...

anyway a programmer can learn alot from signing up for all of these forums .
__________________
<removed by Administrator>
Dia_Byte is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:12 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC