Re: [fpc-devel] arm embedded on 2.6.0rc1

2011-12-21 Thread Geoffrey Barton
I have found a way out. You need to add 'CROSSOPT=-Cpcortexm3' at the end of the line:- make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m in the wiki page. Then the rtl builds in thumb2. Geoffrey On 21 Dec 2011, at 10:55, Geoffrey Barton wrote: >

Re: [fpc-devel] Limitations of static "ranged" integer types and succ/pred, and dynamic solution.

2011-12-21 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: ^ All of these examples are quite bad in the following way: They become very static, which makes it pretty much impossible to change their range at runtime. That's by design. These types are pretty much a left over from the days of turbo pascal, and is a reason why p

Re: [fpc-devel] arm embedded on 2.6.0rc1

2011-12-21 Thread Geoffrey Barton
On 21 Dec 2011, at 10:43, fpc-devel-requ...@lists.freepascal.org wrote: > From: Jeppe Græsdal Johansen > Subject: Re: [fpc-devel] arm embedded on 2.6.0rc1 > Date: 20 December 2011 21:20:07 GMT > To: FPC developers' list > Reply-To: FPC developers' list > > > Den 20-12-2011 21:51, Geoffrey Bar

[fpc-devel] Re: Limitations of static "ranged" integer types and succ/pred, and dynamic solution.

2011-12-21 Thread Skybuck Flying
Actually "wrap back" is probably not the correct behaviour for succ/pred. So it should probably not "wrap back". Instead it could give an out of range error message. However at least Low and High should be able to be used on the dynamic range type, so that these limits can dynamically be acquir

[fpc-devel] Limitations of static "ranged" integer types and succ/pred, and dynamic solution.

2011-12-21 Thread Skybuck Flying
Hello, (Delphi limitation, but probably applies to free pascal as well): Take following examples: Tvalue = smallint; or Tvalue = word or Tvalue = 0..5000; ^ All of these examples are quite bad in the following way: They become very static, which makes it pretty much impossible to change th