[fpc-pascal] Executable size question
Florian Klaempfl
florian at freepascal.org
Tue Jan 3 11:47:58 CET 2006
Pianoman wrote:
> Helo everyone, I would like to ask why are exes generated by FPC so big?
> Simple writeln('Hi'); has about 28 KB. Old FPC 1.0.0 for example created
> for the same code only 14 kb exe.
> What Should I do to reduce the file size (without compression)
Use 1.0.10 ;)
2.x simply has new features which make executables bigger.
> Pianoman
> ----- Original Message -----
> From: <fpc-pascal-request at lists.freepascal.org>
> To: <fpc-pascal at lists.freepascal.org>
> Sent: Sunday, January 01, 2006 12:00 PM
> Subject: fpc-pascal Digest, Vol 17, Issue 1
>
>
>
>>Send fpc-pascal mailing list submissions to
>>fpc-pascal at lists.freepascal.org
>>
>>To subscribe or unsubscribe via the World Wide Web, visit
>>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>or, via email, send a message with subject or body 'help' to
>>fpc-pascal-request at lists.freepascal.org
>>
>>You can reach the person managing the list at
>>fpc-pascal-owner at lists.freepascal.org
>>
>>When replying, please edit your Subject line so it is more specific
>>than "Re: Contents of fpc-pascal digest..."
>>
>>
>>Today's Topics:
>>
>> 1. const pchar parameters? (L505)
>> 2. Re: const pchar parameters? (Jonas Maebe)
>> 3. XML DOM stuff (Tony Pelton)
>>
>>
>>----------------------------------------------------------------------
>>
>>Message: 1
>>Date: Sat, 31 Dec 2005 11:09:21 -0700
>>From: L505 <fpc505 at z505.com>
>>Subject: [fpc-pascal] const pchar parameters?
>>To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
>>Message-ID: <026001c60e35$59db7d10$0200a8c0 at l1>
>>Content-Type: text/plain; charset=iso-8859-1
>>
>>When using pchars, what happens when one does this:
>>
>>function test(const input: pchar): integer;
>>
>>Is this a pointer to a pchar? Or is it just a pchar?
>>
>>i.e. below is bad:
>>function test(var input: pchar): integer;
>>
>>
>>So what about a const pchar paramater... Is it a read only pchar, or a
>
> read only
>
>>pointer to a pchar?
>>
>>
>>--
>>L505
>>
>>
>>------------------------------
>>
>>Message: 2
>>Date: Sat, 31 Dec 2005 19:17:20 +0100
>>From: Jonas Maebe <jonas.maebe at elis.ugent.be>
>>Subject: Re: [fpc-pascal] const pchar parameters?
>>To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
>>Message-ID: <F6DFF70A-3E90-4A59-8C6B-8E8C35FF3651 at elis.ugent.be>
>>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>>
>>
>>On 31 Dec 2005, at 19:09, L505 wrote:
>>
>>
>>>When using pchars, what happens when one does this:
>>>
>>>function test(const input: pchar): integer;
>>>
>>>Is this a pointer to a pchar? Or is it just a pchar?
>>
>>It can be either of those. The compiler is free to choose what it
>>does. All you know for sure is that when you try to assign something
>>to "input", the compiler will throw an error.
>>
>>x
>>Jonas
>>
>>
>>------------------------------
>>
>>Message: 3
>>Date: Sat, 31 Dec 2005 19:33:45 +0000
>>From: Tony Pelton <tpelton at gmail.com>
>>Subject: [fpc-pascal] XML DOM stuff
>>To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
>>Message-ID:
>><16ccc8410512311133h174e6a72oe0486d39dff07b47 at mail.gmail.com>
>>Content-Type: text/plain; charset=ISO-8859-1
>>
>>hi all,
>>
>>i've been toiling over the DOM implementation with the FCL for a few hours
>
> now.
>
>>i had successfully used the XMLRead code to load a DOM from an XML file.
>>
>>i had successfully mutated said document and used XMLWrite to persist
>>those changes to the DOM.
>>
>>i've now been beating my head against the wall trying to figure out
>>how to build a DOM "from scratch" in code.
>>
>>My trouble begins because it would seem that i don't get a "well
>>formed" document by doing a straight "Create()" of an TXMLDocument.
>>
>>i've been digging around inside of the XMLRead code for a bit, trying
>>to understand what _it_ does to get a document going from an XML
>>source file.
>>
>>it's confusing to me.
>>
>>i see some casting and subclassing inside of the XMLRead code that
>>seems to allow for the creation of a well formed TXMLDocument, but i
>>don't see anything that leads me to a well formed API or "factory" for
>>being able to instantiate an "empty" but well formed XML document
>>myself.
>>
>>minimally, i'm having problems because i can't see how to get a
>>DocumentElement attached to the DOM instance via a user serviceable
>>API call.
>>
>>so i can't attach any new elements to the document after a Create().
>>
>>what am i missing ?
>>
>>tia,
>>Tony
>>
>>------------------------------
>>
>>_______________________________________________
>>fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
>>End of fpc-pascal Digest, Vol 17, Issue 1
>>*****************************************
>>
>>
>>__________ Informacia od NOD32 1.1347 (20051230) __________
>>
>>Tato sprava bola preverena antivirusovym systemom NOD32.
>>http://www.eset.sk
>>
>>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list