Re: [fpc-pascal] Text IDE, the displayed cursor position

2013-03-06 Thread Bernd Mueller
Graeme Geldenhuys wrote: On 2013-03-01 14:03, Ebeling wrote: When I start a new program by clicking the button "new", the cursor stands in the upper left corner, but its position is displayed as "1:976". Just to confirm, I see the exact same thing under 64-bit FreeBSD using FPC 2.6.0 no p

Re: [fpc-pascal] Bus error in ARM architecture

2008-09-18 Thread Bernd Mueller
Florian Klaempfl wrote: They also asked me to send them some code which illustrates the problem, which they claim should not exist because the compiler should make sure everything is aligned. FPC does too as long as you don't force the compiler to use a certain memory layout like using the pa

Re: [fpc-pascal] Free Pascal Support for ARM Architecture

2008-12-09 Thread Bernd Mueller
Aleksa Todorovic wrote: So, the situation is like this: 1) Target ARM architecture needs to be "told" to FPC since FPC needs this information to do correct code generation. At least up to fpc 2.2.2, the compiler does not use any information about the ARM architecture. There is one runtime che

Re: [fpc-pascal] Free Pascal Support for ARM Architecture

2008-12-09 Thread Bernd Mueller
Bernd Mueller wrote: Aleksa Todorovic wrote: So, the situation is like this: 1) Target ARM architecture needs to be "told" to FPC since FPC needs this information to do correct code generation. At least up to fpc 2.2.2, the compiler does not use any information about the ARM ar

Re: [fpc-pascal] Free Pascal Support for ARM Architecture

2008-12-09 Thread Bernd Mueller
Marc Santhoff wrote: Am Dienstag, den 09.12.2008, 09:53 +0100 schrieb Marco van de Voort: In our previous episode, Marc Santhoff said: some small THUMB things, but FPC doesn't generate THUMB code). One possible difference coming to my mind (although only a speed issue, not influencing nonethel

[fpc-pascal] test suite, TEST_REMOTEOPT

2009-01-19 Thread Bernd Mueller
Hello, I could not pass the test suite option TEST_REMOTEOPT to the makefile. I tried TEST_REMOTEOPT=xxx and "TEST_REMOTEOPT=xxx" both did not work on Win32. I changed the makefile a bit and it works now for me. Don't know, if this is a proper patch: Index: tests/Makefile ===

Re: [fpc-pascal] Access to RS232 ports with fpc

2009-11-02 Thread Bernd Mueller
Holger Bruns wrote: Holger Bruns schrieb: I try to implement a direct port access. If this also leads to access errors, I should give it up. Embarassing. Accessing ports is limited to ports < 03ffh, more ports cannot be released with fpioperm. This means to me, successful serial port access on

Re: [fpc-pascal] Strange WinCE Bug

2010-03-11 Thread Bernd Mueller
Felipe Monteiro de Carvalho wrote: What do you recommend? Simply creating a report? http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?os=17&cpu=6&version=0&date= it looks, as if 2.4.x was not so well tested on Wince. Perhaps you could run the test suite and see if it is a compiler pr

Re: [fpc-pascal] Re: Endian issues when porting FPC programs from x86 to other platforms

2010-11-03 Thread Bernd Mueller
Jonas Maebe wrote: On 02 Nov 2010, at 21:39, Felipe Monteiro de Carvalho wrote: On Tue, Nov 2, 2010 at 7:04 PM, Bo Berglund wrote: Thanks, that helps a lot! Are there also overloaded BEtoN functions for floating point values? I think that single and double have always the same binary layout.

[fpc-pascal] Short introduction

2006-12-19 Thread Bernd Mueller
Hello, my name is Bernd Mueller. My favourite programming languages are Pascal (since Turbo Pascal 3), x86-Assembler and C. I design and program Embedded Systems (mostly x86, M16C, x51, AVR and now ARM9/ARM7). I am using FreePascal since about one year and I am impressed by the quality of

[fpc-pascal] Flushing serial inque on Linux

2007-02-22 Thread Bernd Mueller
Hello, I am trying to flush the serial inque on Linux with no success. So far I have: procedure FlushInQue(lHandle: Longint); var QueSelector: Longint; begin QueSelector:= TCIFLUSH; Fpioctl(lHandle, TCFLSH, @QueSelector); end; I can read incoming characters, so the connection is ok a

Re: [fpc-pascal] Flushing serial inqueue on Linux

2007-02-23 Thread Bernd Mueller
I can read incoming characters, so the connection is ok and lHandle is valid. I tried TCIOFLUSH as another QueSelector and tried also ioctl instead of Fpioctl. termio.tcflush but that does fpioctl(fd,TCIOflush,pointer(qsel)); TCFlush is working now. Thank you. Regards, Bernd.

Re: [fpc-pascal] Flushing serial inqueue on Linux

2007-02-24 Thread Bernd Mueller
I can read incoming characters, so the connection is ok and lHandle is valid. I tried TCIOFLUSH as another QueSelector and tried also ioctl instead of Fpioctl. termio.tcflush but that does fpioctl(fd,TCIOflush,pointer(qsel)); TCFlush is working now. Thank you. my problem with fpioctl was th

Re: [fpc-pascal] LongWord

2007-05-07 Thread Bernd Mueller
Jonas, On 7 mei 2007, at 14:15, Carsten Bager wrote: I have written a small demo program that gives a runetime error when it runs. Is it the compiler or is it me? See http://www.freepascal.org/mantis/view.php?id=8321 for a long discussion on this topic. I think I have hit a similar case

[fpc-pascal] ARM-Linux, building RTL fails

2007-05-18 Thread Bernd Mueller
Hello, with latest Trunk, Rev. 7387, building of the ARM-Linux RTL fails: ppcrossarm.exe -Tlinux -Parm -XParm-linux- -Xc -Xr -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU../../rtl/units/arm-linux -Tlinux -CX -darm -Us -Sg system.pp softfpu.pp(122,12) Error: Duplicate identifier "UInt64" syst

Re: [fpc-pascal] ARM-Linux, building RTL fails

2007-05-18 Thread Bernd Mueller
Hello again, with latest Trunk, Rev. 7387, building of the ARM-Linux RTL fails: ppcrossarm.exe -Tlinux -Parm -XParm-linux- -Xc -Xr -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU../../rtl/units/arm-linux -Tlinux -CX -darm -Us -Sg system.pp softfpu.pp(122,12) Error: Duplicate identifier "UInt6

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Bernd Mueller
Henry Vermaak wrote: On 03/07/07, josepascual <[EMAIL PROTECTED]> wrote: Thank you henry, I have downloaded svn version 7943 how can I donwload svn 7929? How are you build fpc for arm? make clean crossall CPU_TARGET=arm OS_TARGET=linux ? Which version of binutils do you have? (eabi?) Is SO

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Bernd Mueller
josepascual wrote: Hi Everyone; Please, can someone test this program and write to the list if it works in arm-linux. program datetostr_test; uses sysutils; begin writeln(datetostr(now)); end. I always receive An unhandled exception occurred at $BEED89C8 : EAccessViolation : Access viol

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Bernd Mueller
Jonas Maebe wrote: The -ldl refers to libdl.so, not to dl.o. You have to copy it from your ARM system to your Windows machine, and add the directory with all your ARM libraries to the linker's search path, like Luca did: -Fl/usr/lib/gcc/arm-linux-gnu/4.1.2 thank you Jonas, that was helpful. I

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Bernd Mueller
Luca Olivetti wrote: En/na [EMAIL PROTECTED] ha escrit: Luca, > could you check bug 9191? > > http://www.freepascal.org/mantis/view.php?id=9191 if I try to compile, the linker complaints about not finding the object dl, though dl.o and dl.ppu are present in the rtl/units/arm-linux directo

Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-05 Thread Bernd Mueller
Luca Olivetti wrote: En/na Henry Vermaak ha escrit: i urge you to read this: http://wiki.debian.org/ArmEabiPort http://www.codesourcery.com/gnu_toolchains/arm/faq.html i haven't completely read it (hence i can't answer your questions that well, sorry). I'm wondering if my strange problems a

Re: [fpc-pascal] Freepascal 2.2.0 released

2007-09-11 Thread Bernd Mueller
Joost van der Sluis wrote: The Free Pascal Compiler team is pleased to announce the release of FPC 2.2.0! Congratulations and thank you very much. Regards, Bernd. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-pascal] 0.9.24 released

2007-11-21 Thread Bernd Mueller
Mattias Gaertner wrote: The Lazarus team is glad to announce the 0.9.24 release. This release is based on fpc 2.2.0. Thank you. I used the 0.9.20 since November 2006. The progress you did with the 0.9.24 is huge. Regards, Bernd. ___ fpc-pascal mail

[fpc-pascal] fpc 2.2.0, trying to install as none root on Linux

2007-12-04 Thread Bernd Mueller
Hello, I have downloaded fpc-2.2.0.i386-linux.tar, decompressed the archive and run the install script ./install.sh as none root. The script prompts the following message: "Install prefix (/usr or /usr/local) [/home/bernd/fpc-2.2.0]:" I read the manual and expected to answer some simple qu

Re: [fpc-pascal] serial.pp - I can't talk to modem

2008-01-02 Thread Bernd Mueller
Graeme Geldenhuys wrote: SerWrite(serialhandle, s, Length(s)); SerWrite(serialhandle, s[1], Length(s)); Regards, Bernd. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] serial.pp - I can't talk to modem

2008-01-02 Thread Bernd Mueller
Graeme Geldenhuys wrote: Uh, it works!!! Thanks a million Bernd. If you ever come to South Africa, look me up, I owe you a beer. :) thanks four your invitation, unfortunately I am not living around the corner (Germany). So don't expect me in the next couple of days ;-)) Regards, Bernd.

[fpc-pascal] arm-linux, program does not start when using unit pthreads

2008-01-09 Thread Bernd Mueller
Hello, when I try to start a simple "Hello"-Program, which uses the unit pthreads, on an arm-linux target (uClibc), I get the message "not found". The program is crosscompiled from win32, using the fpc 2.2.0 compiler: program project1; {$mode objfpc}{$H+} uses pthreads; begin Writeln('He

Re: [fpc-pascal] arm-linux, program does not start when using unit pthreads

2008-01-10 Thread Bernd Mueller
Bernd Mueller wrote: when I try to start a simple "Hello"-Program, which uses the unit pthreads, on an arm-linux target (uClibc), I get the message "not found". The program is crosscompiled from win32, using the fpc 2.2.0 compiler: program project1; {$mode objfpc

Re: [fpc-pascal] arm-linux, program does not start when using unit pthreads

2008-01-11 Thread Bernd Mueller
Koenraad Lelong wrote: I tried on my arm-linux board, AFAIK NOT uClibc. It works fine. Thanks. Are you crosscompiling? Do you use static or dynamic linking? Regards, Bernd. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fr

Re: [fpc-pascal] arm-linux, program does not start when using unit pthreads

2008-01-14 Thread Bernd Mueller
Koenraad Lelong wrote: Bernd Mueller schreef: Koenraad Lelong wrote: I tried on my arm-linux board, AFAIK NOT uClibc. It works fine. Thanks. Are you crosscompiling? Do you use static or dynamic linking? Regards, Bernd. When I read you reply about linking I realised I didn't think abou

[fpc-pascal] arm-linux, using unit cthreads fails

2008-01-16 Thread Bernd Mueller
Hello, the following program is throwing an Access Violation on my system (ARM920T, uClibc): program project1; {$mode objfpc}{$H+} uses cthreads, SysUtils; function TheThread(pAnyArgument: Pointer): Longint; begin repeat Sleep(1000); until FALSE; end; begin Writeln('Running.

[fpc-pascal] arm-linux, no bus error on misaligned data access

2008-02-26 Thread Bernd Mueller
Hello, my ARM-Linux board seems to be resistant against bus errors/misaligned data access or the compiler does some magic to prevent these ;-) It would help me, to debug a program, when my board would abort with an error message, so that I can isolate the bug. Does someone know, if there exis

Re: [fpc-pascal] arm-linux, no bus error on misaligned data access

2008-02-26 Thread Bernd Mueller
Daniël Mantione wrote: echo 4 > /proc/cpu/alignment ... and your program should abort at any unaligned access. Daniël, thank you very much. Regards, Bernd. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mail

[fpc-pascal] Which compiler for ARM embedded project?

2015-11-13 Thread Bernd Mueller
Hello, five years ago, I realized an embedded project with fpc 2.3.1. I used an AT91SAM7S256 Controller (ARMv4T). I am considering to use a more recent fpc compiler for a new project with the same controller. So my question: Which fpc compiler is recommended nowadays? Upcoming 3.0.0 or trunk

Re: [fpc-pascal] ARM CMSIS support

2016-02-12 Thread Bernd Mueller
Michael Ring wrote: By the way, with fpc trunc compiler you can target your board directly: ppcrossarm -WpDISCOVERYF407VG (see ppcrossarm -i for other Discovery boards) You should also refrain from using optimizations > -O1 as there are some issues with the compiler that make your compiled

Re: [fpc-pascal] ARM CMSIS support

2016-02-23 Thread Bernd Mueller
Michael Ring wrote: (Glad to hear that basic functionality works...) I finished my first (small) project with the STM32F429ZI controller and everything went smooth :-) Even with optimization level -O2. Thanks everyone, who is involved in the ARM compiler/rtl development. Regards, Bernd.

Re: [fpc-pascal] ARM CMSIS support

2016-02-23 Thread Bernd Mueller
Marc Santhoff wrote: Did you use the stmf103fw.pas translation from Jeppe or make you own unit for supporting the 429? I needed only a few peripherals (GPIO, USART, RCC and embedded FLASH). I wrote this stuff by myself. My target would be f407, although the project in mind has to be done u

Re: [fpc-pascal] Coroutines and VirtualAlloc

2017-04-20 Thread Bernd Mueller
On 04/20/2017 09:40 AM, Mark Morgan Lloyd wrote: Turning it around a little: are there still FPC targets that don't have threads? Having coroutines would allow a native thread mechanism to be implemented, without relying on the underlying OS. it would be really nice to have coroutines for the

[fpc-pascal] Floating point exception not always caught on Linux i386.

2019-10-11 Thread Bernd Mueller
Hello, FPC 3.0.4, Linux i386 the following program should catch the floating point exception (always), but crashes on the fourth call to the procedure Run: program test; {$mode objfpc}{$H+} procedure Run; var r: Real; i: Integer; begin i:= 1; try r:= i / 0.0; except

Re: [fpc-pascal] Floating point exception not always caught on Linux i386.

2019-10-11 Thread Bernd Mueller
On 10/11/19 10:51 AM, Bart wrote: See https://www.freepascal.org/docs-html/current/prog/progsu69.html#x76-750001.2.69 sorry, I forgot to mention, that I checked with {$SAFEFPUEXCEPTIONS ON}, but it did not change the behavior. Regards, Bernd. ___

[fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-05 Thread Bernd Mueller via fpc-pascal
Hello, I would like to use fpc to program a FPGA softcore RISC-V cpu. The softcore has the RV32I instruction set implemented. I modified the Makefile in rtl/embedded, so that the known SUBARCH rv32imac replaces the option -Cprv32imac with now -Cprv32i. But this leads to the following error mess

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-06 Thread Bernd Mueller via fpc-pascal
I saw your changes in revision 48881, downloaded latest trunk, compiled with make crosszipinstall CPU_TARGET=riscv32 OS_TARGET=embedded SUBARCH=rv32i but the problem remains: make[4]: Entering directory '/home/bernd/fpc/fpc331/48882/src/rtl/embedded' /bin/mkdir -p /home/bernd/fpc/fpc331/48882/sr

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-10 Thread Bernd Mueller via fpc-pascal
On 3/5/21 6:22 PM, Florian Klämpfl via fpc-pascal wrote: It is not expected that it works as RiscV support is still work in progress, but it should work ;) I'll look into it. Thank you. For me, the compiler for RV32I/RV32IMAC works already pretty well. Regards, Bernd. ___