![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#12 |
|
Programmer
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0
![]() |
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> |
|
|
|
|
|
#13 |
|
Hobbyist Programmer
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#14 |
|
Newbie
Join Date: Oct 2004
Posts: 23
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#15 |
|
Programming Guru
![]() |
I'll try it on MS VS.net later in C, C++ and C#.
__________________
|
|
|
|
|
|
#16 |
|
Newbie
Join Date: Nov 2004
Posts: 3
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#17 | |
|
Programmer
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0
![]() |
Quote:
because i entered your website and signed up for all forums you've givin me ... i'll have to say thanks ![]()
__________________
<removed by Administrator> |
|
|
|
|
|
|
#18 | ||
|
Hobbyist Programmer
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5
![]() |
Quote:
![]()
__________________
http://www.white-scorpion.nl |
||
|
|
|
|
|
#19 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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.
|
|
|
|
|
|
#20 |
|
Programmer
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0
![]() |
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> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|