Re: [fpc-pascal] What is the best memory optimization parameter

2016-06-15 Thread czd
Actually, I want to reduce the size of the fpc for linux/mips, I have tested the size of the ppcmips without the OPT, OPT='-CX -Xs -XX' and OPT='-O4 -Oonostackframe -XX' options but nothings changed dramatically. All the OPT sizes are the same. Is there something to forget? Thanks. -- View this

Re: [fpc-pascal] mips linux cross compiled application error

2016-06-15 Thread czd
Thats the fpc log when compiling under Linux/mips (OpenWRT) system. Has someone any idea? root@Omega-28F6:~/onion-omega/fpc-test# fpc -Tlinux -Pmips hello.pas -va [0.008] Macro defined: LINUX [0.009] Macro defined: UNIX [0.010] Macro defined: HASUNIX [0.012] Macro defined:

Re: [fpc-pascal] What is the best memory optimization parameter

2016-06-15 Thread Jeppe Johansen
On 06/15/2016 06:04 PM, czd wrote: Hi all, What is the extreme memory optimization parameter to compile fpc for the embedded system? And could someone tell me what is the minimum memory specification for freepascal to run? Thanks. Depends on your platform really but usually the short answer is:

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread Santiago A.
El 15/06/2016 a las 18:20, wkitt...@windstream.net escribió: > >>> how is a set of sets defined? >> No > > hunh? I meant, you can't. A set is not an ordinal type, but an structured type, so a set of sets is impossible. > > yup... > > if (this.messages.area.num in UsersMsgTaggedAreas) then >

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread Sven Barth
On 15.06.2016 18:20, wkitt...@windstream.net wrote: > On 06/15/2016 10:36 AM, Santiago A. wrote: >> El 15/06/2016 a las 15:55, wkitt...@windstream.net escribió: >>> >>> what is the best/easiest way to increase the size of a set if the set >>> is defined as the following? >>> >>> >>>const >>>

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread wkitty42
On 06/15/2016 10:36 AM, Marco van de Voort wrote: In our previous episode, wkitt...@windstream.net said: what is the best/easiest way to increase the size of a set if the set is defined as the following? Uses classes.tbits nice! we used to do bit flags back in the TP/BP days but i forget

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread wkitty42
On 06/15/2016 10:36 AM, Santiago A. wrote: El 15/06/2016 a las 15:55, wkitt...@windstream.net escribió: what is the best/easiest way to increase the size of a set if the set is defined as the following? const CMaxCount = 255; type TMsgAreas = set of 0..CMaxCount; var

[fpc-pascal] What is the best memory optimization parameter

2016-06-15 Thread czd
Hi all, What is the extreme memory optimization parameter to compile fpc for the embedded system? And could someone tell me what is the minimum memory specification for freepascal to run? Thanks. -- View this message in context:

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread Santiago A.
El 15/06/2016 a las 15:55, wkitt...@windstream.net escribió: > > what is the best/easiest way to increase the size of a set if the set > is defined as the following? > > > const > CMaxCount = 255; > > type > TMsgAreas = set of 0..CMaxCount; > > var > MsgAreas : TMsgAreas; > >

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread Marco van de Voort
In our previous episode, wkitt...@windstream.net said: > what is the best/easiest way to increase the size of a set if the set is > defined > as the following? Uses classes.tbits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] how to expand a set?

2016-06-15 Thread wkitty42
what is the best/easiest way to increase the size of a set if the set is defined as the following? const CMaxCount = 255; type TMsgAreas = set of 0..CMaxCount; var MsgAreas : TMsgAreas; is a set of sets possible? how is a set of sets defined? how are the elements in

Re: [fpc-pascal] Conditional code for FPC modes

2016-06-15 Thread Jonas Maebe
Mattias Gaertner wrote: > I spotted several hidden gems via the list of FPC* macros. Note that a bunch of these are probably temporary ones, search for "Temporary" in compiler/options.pas for a list of those in your current FPC version. Those are removed from time to time as they are no longer

Re: [fpc-pascal] mips linux cross compiled application error

2016-06-15 Thread czd
Hi all, Soon the cross compilation works fine then I tried to compile without cross. :) I compiled fpc for the linux/mips platform. But when I try to compile the test application error occurs like that. root@Omega-28F6:~/onion-omega/fpc-test# ppcmips hello.pas Free Pascal Compiler version 3.1.1

Re: [fpc-pascal] FPC 3.0 using clang for cross compile

2016-06-15 Thread Torsten Bonde Christiansen
On 2016-06-14 15:34, Jonas Maebe wrote: Torsten Bonde Christiansen wrote: Is there a reason why fpc needs the llvm for cross compiling (I'm building agains OSX 10.5) - it was not need for fpc 2.6.4...

Re: [fpc-pascal] Conditional code for FPC modes

2016-06-15 Thread Mattias Gaertner
On Wed, 15 Jun 2016 11:43:59 +0200 Mattias Gaertner wrote: >[...] > Thanks for the hint. Done. Oops. Wrong thread. To my rescue a hint: You can see the actual FPC defines in Lazarus by placing the cursor in the directive and pressing Ctrl+Space: {$IFDEF FPC|} I

Re: [fpc-pascal] Conditional code for FPC modes

2016-06-15 Thread Mattias Gaertner
On Wed, 15 Jun 2016 11:18:38 +0200 Sven Barth wrote: > Am 15.06.2016 10:15 schrieb "Juha Manninen" : > > > > Are there defines matching the modes in FPC, for example {$mode > delphiunicode} ? > > I want to do something like : > > {$IFDEF

Re: [fpc-pascal] Conditional code for FPC modes

2016-06-15 Thread Sven Barth
Am 15.06.2016 10:15 schrieb "Juha Manninen" : > > Are there defines matching the modes in FPC, for example {$mode delphiunicode} ? > I want to do something like : > {$IFDEF delphiunicode} > ... > {$ELSE} > ... > {$ENDIF} There are. They are FPC_, though

Re: [fpc-pascal] Conditional code for FPC modes

2016-06-15 Thread Juha Manninen
More accurately, I want to check {$ModeSwitch UnicodeStrings}. Anyway, if there is no define, I can use: {$IF SizeOf(Char) = 2} Works well although the highlighter in Lazarus editor shows it wrong. Juha ___ fpc-pascal maillist -

[fpc-pascal] Conditional code for FPC modes

2016-06-15 Thread Juha Manninen
Are there defines matching the modes in FPC, for example {$mode delphiunicode} ? I want to do something like : {$IFDEF delphiunicode} ... {$ELSE} ... {$ENDIF} Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org