[fpc-pascal] Constants

Martin Schreiber fpmse at bluewin.ch
Tue Jan 10 08:38:47 CET 2006


On Tuesday 10 January 2006 08.17, Carsten Bager wrote:
> The very best would be if things was like this
>
> Static
> St: array[0..4] of char ='12345'; {Placed in text segment}
>
> Var
> St: array[0..4] of char ='12345'; {Placed in data segment}
>

Or to have any count of named segments which can be selected at var or const 
definition.

Var in text         <- use the appropriate notation
 St: array[0..4] of char ='12345'; {Placed in text segment}

Var in bss
 St: array[0..4] of char ='12345'; {Placed in data segment}

Const in myspecialseg
 St: array[0..4] of char ='12345'; {Placed in special segment}


Martin



More information about the fpc-pascal mailing list