Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-03

Two Questions

17 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

My first question is, why are FPC Win32 executables so large, even after running stripw.exe on them? A simple program that has nothing but the CRT unit declared and does nothing more than clear the screen and write "Hello" is a 400K executable. Smart linking doesn't seem to do much to cure it, and stripw.exe only trims it down to about 150K. That seems a bit outrageous to me, but that's just my opinion, I guess.

My second question is, why doesn't the IDE run the program when CTRL-F9 is pressed? It just immediately returns without running the program and gives me a message about the program exiting with some bogus error level value that I certainly haven't defined in my simple clrscr;writeln('Hello'); test program.

__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Kanzelsberger Pavel

Compile your program with -Xs switch and/or try also -XX Program with CRT should have about 40k not 400k

Dunno about IDE, I'm not using it :)

Regards, Pavel Kanzelsberger

Earlier message 33 lines
-----Original Message----- From: Sent: Monday, March 25, 2002 9:58 PM To: Subject: [fpc-pascal]Two Questions My first question is, why are FPC Win32 executables so large, even after running stripw.exe on them? A simple program that has nothing but the CRT unit declared and does nothing more than clear the screen and write "Hello" is a 400K executable. Smart linking doesn't seem to do much to cure it, and stripw.exe only trims it down to about 150K. That seems a bit outrageous to me, but that's just my opinion, I guess. My second question is, why doesn't the IDE run the program when CTRL-F9 is pressed? It just immediately returns without running the program and gives me a message about the program exiting with some bogus error level value that I certainly haven't defined in my simple clrscr;writeln('Hello'); test program. -- __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Andreas K. Foerster
to Unknown author: My first question is, why are FPC Win32 executables so large, even after running…
My first question is, why are FPC Win32 executables so large, even after running stripw.exe on them? A simple program that has nothing but the CRT unit declared and does nothing more than clear the screen and write "Hello" is a 400K executable. Smart linking doesn't seem to do much to cure it, and stripw.exe only trims it down to about 150K. That seems a bit outrageous to me, but that's just my opinion, I guess.

Have you installed the ppc386.cfg file?
Take a look at it, there can a lot of optimizations be done.

Btw. there is of course allways a base of code, that is put into any program, no matter how long or short it is. And when you use the Crt unit without activating smartlinking, the whole unit is put into the program. Read the manual...

P.S.: I don't use FP. I don't need it, I don't like it, I don't... I don't better write anything further

Tschuess Andreas
Unknown author
Have you installed the ppc386.cfg file? Take a look at it, there can a lot of optimizations be done.

Maybe you need to read the manual too, the ppc386.cfg file doesn't affect the IDE.

Btw. there is of course allways a base of code, that is put into any program, no matter how long or short it is. And when you use the Crt unit without activating smartlinking, the whole unit is put into the program. Read the manual...

As I said in my previous message, I used {$SMARTLINK ON} and it didn't make any noticable difference. Don't tell me to "read the manual" until after you've "read the message"...Geez...Nice support method, RTFM!

P.S.: I don't use FP. I don't need it, I don't like it, I don't... I don't better write anything further

That's nice, it's obvious you shouldn't be the one providing "help"...

__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Jonas Maebe
to Unknown author
As I said in my previous message, I used {$SMARTLINK ON} and it didn't make any noticable difference.

If you put that in a program/unit, it just means that program/unit will be compiled so that it can be smartlinked. To make sure other units are smartlinked to your program, you have to go to Options->Linker and select "Link to smart libraries".

Jonas

Andreas K. Foerster
to Unknown author: Maybe you need to read the manual too, the ppc386.cfg file doesn't affect the IDE. As I…
Show quoted text 5 lines
>Have you installed the ppc386.cfg file? >Take a look at it, there can a lot of optimizations be done. Maybe you need to read the manual too, the ppc386.cfg file doesn't affect the IDE.

Did I say so?
You asked two questions.

Show quoted text 8 lines
>Btw. there is of course allways a base of code, that is put into any >program, no matter how long or short it is. And when you use the Crt >unit without activating smartlinking, the whole unit is put into the >program. Read the manual... As I said in my previous message, I used {$SMARTLINK ON} and it didn't make any noticable difference. Don't tell me to "read the manual" until after you've "read the message"...Geez...Nice support method, RTFM!

I read the message, and I read it again.
You wrote nothing about that!
(btw. really reading the manual would have helped you anyway)

That's nice, it's obvious you shouldn't be the one providing "help"...

Sorry, that I tried. I will never do it again to you! EOT!

Tschuess Andreas
Peter Vreman
As I said in my previous message, I used {$SMARTLINK ON} and it didn't make any

noticable
difference. Don't tell me to "read the manual" until after you've "read the message"...Geez...Nice support method, RTFM!

{$SMARTLINK ON} will only create a smartlinked unit. It doesn't tell the compiler to use the smartlinked units when linking the program. You need to turn that on in the Options-Linker dialog

Unknown author
"Andreas K. Foerster" wrote
(btw. really reading the manual would have helped you anyway)

I suppose you would like me to believe that the *only* reason people ask questions here is because they already read and memorized all of the FPC documentation? Get a clue already. Besides, if you think "help" means telling people to RTFM, then it's painfully obvious that you shouldn't be responding to messages here.

> That's nice, it's obvious you shouldn't be the one providing "help"... Sorry, that I tried. I will never do it again to you!

You're breaking my heart...Really, you are...You think *everone* else here is going to follow your lead, or just continue laughing at you?

__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
ron wilson
to Unknown author

heh - a flame war in the fpc-pascal list. lets grow up ok?

ron wilson

Earlier message 39 lines
-----Original Message----- From: Behalf Of Sent: Wednesday, March 27, 2002 11:49 AM To: Subject: RE: [fpc-pascal]Two Questions "Andreas K. Foerster" wrote: >(btw. really reading the manual would have helped you anyway) I suppose you would like me to believe that the *only* reason people ask questions here is because they already read and memorized all of the FPC documentation? Get a clue already. Besides, if you think "help" means telling people to RTFM, then it's painfully obvious that you shouldn't be responding to messages here. >> That's nice, it's obvious you shouldn't be the one providing "help"... > >Sorry, that I tried. I will never do it again to you! You're breaking my heart...Really, you are...You think *everone* else here is going to follow your lead, or just continue laughing at you? -- __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Unknown author
"ron wilson" wrote
heh - a flame war in the fpc-pascal list. lets grow up ok? ron wilson

It's only a "flame war" if that's how an immature mind wants to interpret it. Looks like you should practice what you preach regarding growing up.

__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
MPDJ
to Unknown author: I suppose you would like me to believe that the *only* reason people ask questions here…

<"No name"> wrote:-

> because they already read and memorized all of the FPC documentation?

Ever heard of an 'Index' or a 'Search' function? eh?

> You think *everyone* else here is going to follow your lead, or just

continue laughing at you?

No, were too busy laughing at your childish attitude and unhelpful comments.

> painfully obvious that you shouldn't be responding to messages here.

Maybe you should follow your own advice ??

Andy

---
Goddammit people - This email has NO virus in it - OK? Don't believe me - tough !
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.338 / Virus Database: 189 - Release Date: 15/03/02

Unknown author
Ever heard of an 'Index' or a 'Search' function? eh?

Wow, you're a bright one...You were probably the brightest one on that "little bus" in your school days, weren't you? "Eh?"

No, were too busy laughing at your childish attitude and unhelpful comments.

And the pot calls the kettle black...

Define "We"...Oh yeah, that would be "we're" not "were". I guess you really weren't the brightest one on that little bus, "were" you? See how much more sense things make when you use correct spelling and grammar?

Maybe you should follow your own advice ??

I wasn't offering any advice, you're obviously delusional and hallucinating, or you have a reading impairment that goes along with your spelling impairment.

So, little boy...How about you quit offering your childish remarks and quit trying to start another flame war in this mailing list? It's clear that you sure as hell wasn't trying to offer anything helpful with your verbal masturbation.

__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Unknown author

Dude, can someone please ban this nut? ( ) Reasons are pretty obvious. I am tired of deleting his emails. I want to get back to reading meaningful emails from this list.

Show quoted text 29 lines
>Ever heard of an 'Index' or a 'Search' function? eh? Wow, you're a bright one...You were probably the brightest one on that "little bus" in your school days, weren't you? "Eh?" >No, were too busy laughing at your childish attitude and unhelpful comments. And the pot calls the kettle black... Define "We"...Oh yeah, that would be "we're" not "were". I guess you really weren't the brightest one on that little bus, "were" you? See how much more sense things make when you use correct spelling and grammar? >Maybe you should follow your own advice ?? I wasn't offering any advice, you're obviously delusional and hallucinating, or you have a reading impairment that goes along with your spelling impairment. So, little boy...How about you quit offering your childish remarks and quit trying to start another flame war in this mailing list? It's clear that you sure as hell wasn't trying to offer anything helpful with your verbal masturbation. -- __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Unknown author

And I suppose you think that would stop me from re-subscribing using a different address and origination subnet? Get over it, I only posted less than 10 messages. If it has burdened you that much to delete less than 10 messages from me, when you obviously delete far more than that which are not from me, you are one major cry-baby and need to grow yourself...

Dude, can someone please ban this nut? ( ) Reasons are pretty obvious. I am tired of deleting his emails. I want to get back to reading meaningful emails from this list.
__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Jonas Maebe
to Unknown author: Dude, can someone please ban this nut? ( ) Reasons are pretty obvious. I am tired of…
Dude, can someone please ban this nut? ( ) Reasons are pretty obvious. I am tired of deleting his emails. I want to get back to reading meaningful emails from this list.

You need two to tango. In other words: a single person can't keep a flamewar going. So please, everyone, drop this thread. And please don't reply to this message on the list with one or other witty remark to get the last word.

Thanks,

Jonas
Co-moderator