Re: [fpc-pascal] FPC + valgrind massif problems

2012-05-10 Thread Sven Barth
Am 11.05.2012 02:40, schrieb Michalis Kamburelis: 2. Is there any other reliable memory profiler for FPC? As you can swap memory manager in Pascal, and FPC can give you a backtrace, I suppose it's quite possible to just write a unit that works between your program and standard memory manager, and

Re: [fpc-pascal] Unicodestrings and Assign(File)

2012-05-10 Thread Noah Silva
Hi, According to what I have read (and I always wonder how up to date documentation is with respect to the state of the compiler and libraries), all standard library functions (Which would include system.assign) are still using the "local" encoding. For Mac OS X, luckily, this means UTF8. Thus,

[fpc-pascal] FPC + valgrind massif problems

2012-05-10 Thread Michalis Kamburelis
Hi, I wanted to debug where my program uses the most memory. (There are no memory leaks, but I want to optimize memory usage on some large inputs. As the code is quite large, simply guessing which part is responsible becomes quite hard :) In the past, I happily used valgrind's massif tool for

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: On Thu, 10 May 2012 14:07:47 +0200 (CEST) "Tomas Hajny" wrote: On Thu, May 10, 2012 13:22, microcode wrote: Sun makes awfully nice boxes and Solaris is a very nice development platform. I hope the guys will keep FPC going on Solaris. There are many Solaris 10 on Sun

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread Tomas Hajny
On Thu, May 10, 2012 15:20, microc...@zoho.com wrote: > On Thu, 10 May 2012 14:07:47 +0200 (CEST) "Tomas Hajny" wrote: >> On Thu, May 10, 2012 13:22, microcode wrote: > >> > Sun makes awfully nice boxes and Solaris is a very nice development >> > platform. I hope the guys will keep FPC going on Sol

[fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread microcode
On Thu, 10 May 2012 14:07:47 +0200 (CEST) "Tomas Hajny" wrote: > On Thu, May 10, 2012 13:22, microcode wrote: > > Sun makes awfully nice boxes and Solaris is a very nice development > > platform. I hope the guys will keep FPC going on Solaris. There are > > many Solaris 10 on Sun fans. > > FPC s

[fpc-pascal] Re: Runs correctly when debugging.

2012-05-10 Thread Guillermo Martínez Jiménez
> No, you have to use pchar. I would also define ALLEGRO_BITMAP as an > empty record, to be clear that it's an opaque type: > > {$packrecords c} > TAllegroBitmap = record > end; > PAllegroBitmap = ^TAllegroBitmap; > > Thus: > > function al_load_bitmap(const filename: pchar): PAllegroBitmap; cde

Re: [fpc-pascal] fpc & arm-embedded interrupts

2012-05-10 Thread Jeppe Græsdal Johansen
The easiest way to do interrupt processing in Cortex-M3 processors(which I assume you are using), is to create an interrupt vector table in SRAM and then change the NVIC to use that. That way you can point to the interrupt handlers at runtime. It's true that the normal way of doing it is with

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread Tomas Hajny
On Thu, May 10, 2012 13:22, microc...@zoho.com wrote: . . > Sun makes awfully nice boxes and Solaris is a very nice development > platform. I hope the guys will keep FPC going on Solaris. There are many > Solaris 10 on Sun fans. . . FPC support of individual platforms depends on availability o

[fpc-pascal] fpc & arm-embedded interrupts

2012-05-10 Thread Koenraad Lelong
Hi, I'm working on an embedded-arm application. I do want to use interrupts but I don't find how to easily setup the interrupt-handlers. In the startup code in C, I see default handlers defined with the keyword WEAK. Looking around, I found that this means that if one defines a function with t

[fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread microcode
On Thu, 10 May 2012 07:32:47 + Mark Morgan Lloyd wrote: > > How many sockets do you have on your E4500? > > 12, i.e. space for an I/O card and internal discs for booting. Woohoo! That's a lot of CPUs. I'll bet you can heat your home with that in the winter. > I prefer the SS1000 architecture

[fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread microcode
On Thu, 10 May 2012 07:27:22 + Mark Morgan Lloyd wrote: > microcode wrote: > > What SPARC box(es) do you have? I may be able to host Solaris > > development systems if needed although the SPARC stuff would have to be > > scheduled since I cannot leave them on all the time because of the huge

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
On 2012-05-10 11:16, Jonas Maebe wrote: Torsten Bonde Christiansen wrote on Thu, 10 May 2012: On 2012-05-10 10:45, t.wieckow...@gmail.com wrote: it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double(a),dou

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Jonas Maebe
Torsten Bonde Christiansen wrote on Thu, 10 May 2012: On 2012-05-10 10:45, t.wieckow...@gmail.com wrote: it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double(a),double(b),double(0)). How can that be, sin

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
On 2012-05-10 10:45, t.wieckow...@gmail.com wrote: it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double(a),double(b),double(0)). best regards Tomek ___ fpc-pascal

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread t . wieckowski
it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double(a),double(b),double(0)). best regards Tomek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://l

Re: [fpc-pascal] Re: 2.6.0 for Solaris? And other questions

2012-05-10 Thread Tomas Hajny
On Thu, May 10, 2012 08:45, Sven Barth wrote: > Am 09.05.2012 20:19, schrieb microc...@zoho.com: There are no binaries provided by my distribution. It's Slackware! But the question was, was it really necessary to use such a recent glibc? >> >>> It's a matter of what the libc version happe

[fpc-pascal] Re: 2.6.0 for Solaris? And other questions

2012-05-10 Thread microcode
Thu, 10 May 2012 08:45:14 +0200 Sven Barth wrote > The text mode IDE "fp" is not used that much on Unix based systems thus > such problems regarding to recent/old libraries are not detected that > easily. That would explain it! But I saw fp once and I loved it, very Borland Turbo! > Most users u

Re: [fpc-pascal] Re: 2.6.0 for Solaris? And other questions

2012-05-10 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 09.05.2012 20:19, schrieb microc...@zoho.com: There are no binaries provided by my distribution. It's Slackware! But the question was, was it really necessary to use such a recent glibc? It's a matter of what the libc version happens to be on the system that was used to b

Re: [fpc-pascal] Re: 2.6.0 for Solaris? And other questions

2012-05-10 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: I screwed up the quoting here, sorry. Jeff didn't write all below, I think some of it was Mark. On Wed, 09 May 2012 18:01:43 -0400 Jeff Wormsley wrote: And what, pray, is wrong with Slackware? :-) Nothing :-) Once you Slack you never go back! Most of the SPARC syst

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: On Wed, 09 May 2012 18:18:59 + Mark Morgan Lloyd wrote: My main role is being a thorn in the side of the core developers when something stops working :-) However I've previously offered to host a (not very fast) system here for compilation etc., and the offer stand