Re: [fpc-pascal] Compiling for SPARC

2006-08-08 Thread Mark Morgan Lloyd
OK, here's the current situation. Working on an SS-20 with Debian 3.1 "Sarge" (kernel 2.4.27 SMP) I can do a "make cycle" but I can't do a "make zipinstall". Specifically, make zipinstall grinds to a halt usually while processing gtkglarea.pp, and sits there with ppcsparc taking around 6% CPU. I'v

Re: [fpc-pascal] Compiling for SPARC

2006-08-08 Thread Jonas Maebe
On 8 aug 2006, at 12:48, Mark Morgan Lloyd wrote: OK, here's the current situation. Working on an SS-20 with Debian 3.1 "Sarge" (kernel 2.4.27 SMP) I can do a "make cycle" but I can't do a "make zipinstall". Specifically, make zipinstall grinds to a halt usually while processing gtkglare

[fpc-pascal] Linker error

2006-08-08 Thread Carsten Bager
When I am try to link a c obj file together with a fpc program I get this errors ("d" is my program) ld.exe: ERROR: system.o uses hardware FP, whereas d uses software FP ld.exe: failed to merge target specific data of file system.o My target (Arm 9) dos not have a FPU Carsten _

[fpc-pascal] Re: DLL and Shared Libs in FPC

2006-08-08 Thread Jason P Sage
[Jason Peter Sage] Thank You Everyone - All your responses were very encouraging. My last attempt at making a DLL was 1.9.? FPC, so hearing definitively that your guys are using 2.x to make dll's and shared libs is simply great news to me. I also appreciated the comment warning that could be sum

Re: [fpc-pascal] Compiling for SPARC

2006-08-08 Thread Mark Morgan Lloyd
Jonas Maebe wrote: > I can't reproduce this with either cross compiling from ppc to sparc > with 2.0.4, or with natively compiling under solaris/sparc with > 2.1.1. Can you compile your compiler with debug info (add OPT="-O- - > g" to your make command) and attach with gdb to see what the compiler

Re: [fpc-pascal] Compiling for SPARC

2006-08-08 Thread Jonas Maebe
On 8 aug 2006, at 18:52, Mark Morgan Lloyd wrote: I can't reproduce this with either cross compiling from ppc to sparc with 2.0.4, or with natively compiling under solaris/sparc with 2.1.1. Can you compile your compiler with debug info (add OPT="-O- - g" to your make command) and attach with gd

Re: [fpc-pascal] su (switch user) application

2006-08-08 Thread Johannes Nohl
Hello! In that case you can use the fpSetUID call. This call can be used only once. Thanks for your help. But I never saw this function. Can you tell me which unit it is in? Johannes ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

[fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

2006-08-08 Thread Alexandre Leclerc
Hi all, I hope some have knowledge of PascalScript because I'm having quite a weird and complex problem. I'll demonstrate it here very simply so if some have ideas... *Problem* I'm exporting some classes (originally a TBitmap; now a custom class) to the ROPS engine and then interacting with the

Re: [fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

2006-08-08 Thread Jonas Maebe
On 08 Aug 2006, at 20:39, Alexandre Leclerc wrote: *Problem* I'm exporting some classes (originally a TBitmap; now a custom class) to the ROPS engine and then interacting with the class in the scripting engine. Everything works, except for some functions that behave very strange. They skip/dupl

Re: [fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

2006-08-08 Thread Alexandre Leclerc
2006/8/8, Jonas Maebe <[EMAIL PROTECTED]>: On 08 Aug 2006, at 20:39, Alexandre Leclerc wrote: > *Problem* > I'm exporting some classes (originally a TBitmap; now a custom class) > to the ROPS engine and then interacting with the class in the > scripting engine. Everything works, except for some

Re: [fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

2006-08-08 Thread Michael Van Canneyt
On Tue, 8 Aug 2006, Jonas Maebe wrote: > > On 08 Aug 2006, at 20:39, Alexandre Leclerc wrote: > > > *Problem* > > I'm exporting some classes (originally a TBitmap; now a custom class) > > to the ROPS engine and then interacting with the class in the > > scripting engine. Everything works, exce

Re: [fpc-pascal] su (switch user) application

2006-08-08 Thread Michael Van Canneyt
On Tue, 8 Aug 2006, Johannes Nohl wrote: > Hello! > > > In that case you can use the fpSetUID call. > > This call can be used only once. > > Thanks for your help. But I never saw this function. Can you tell me > which unit it is in? Baseunix. See the documentation: http://www.freepascal.org

Re: [fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

2006-08-08 Thread Alexandre Leclerc
2006/8/8, Michael Van Canneyt <[EMAIL PROTECTED]>: On Tue, 8 Aug 2006, Jonas Maebe wrote: > > On 08 Aug 2006, at 20:39, Alexandre Leclerc wrote: > > > *Problem* > > I'm exporting some classes (originally a TBitmap; now a custom class) > > to the ROPS engine and then interacting with the class

Re: [fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

2006-08-08 Thread Alexandre Leclerc
2006/8/8, Michael Van Canneyt <[EMAIL PROTECTED]>: The problem is more likely that all arguments are extended, which probably means that the stack is used differently. Are they pushed on the FPU stack ? Ok, I found this procedure that is used to handle parameters... Maybe this is the actual asm

Re: [fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

2006-08-08 Thread Alexandre Leclerc
The actual procedure that is called. It does some asm processing and then calls the MyAllMethodsHandler2 that works with parameters. Maybe this is there that there is a problem? (This is all in the uPSRuntime.pas file) procedure MyAllMethodsHandler; // On entry: // EAX = Self pointer //