Re: [fpc-devel] STM32F407 fun

2016-03-19 Thread Andrew Haines
On 03/19/2016 09:20 AM, Michael Ring wrote: OK, seems you are not using trunk or an outdated version of trunk as there are quite a number of units for stm32f4 available in current trunk: stm32f401xx.pp stm32f407xx.pp stm32f411xe.pp stm32f429xx.pp stm32f446xx.pp So I'd recomment to either

Re: [fpc-devel] STM32F407 fun

2016-03-19 Thread Andrew Haines
On 03/19/2016 07:36 AM, Michael Ring wrote: Re-reading your initial mail I am kind of wondering what you actually did ? When using -WpSTM32F407VG you will automagially use stm32f407xx.pp unit which is the correct one for your chip and also stack should be correct as ram size is set to 128MB.

Re: [fpc-devel] STM32F407 fun

2016-03-19 Thread Andrew Haines
On 03/19/2016 04:19 AM, Jeppe Johansen wrote: On 03/19/2016 04:47 AM, Andrew Haines wrote: I'm guessing there is some define I have to use and everything will start working :) Where do I go from here? You need to remove classes from your used units. It needs a thread manager to work

[fpc-devel] STM32F407 fun

2016-03-18 Thread Andrew Haines
one-eabi-" OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7em the program is compiled with -Oparmv7em -WpSTM32F407VG I'm guessing there is some define I have to use and everything will start working :) Where do I go from here? Thanks in advance, Andrew Haines

Re: [fpc-devel] AVR embedded Atmega 328p interrupts

2015-11-30 Thread Andrew Haines
On 11/29/2015 06:54 PM, Jeppe Johansen wrote: Don't use noreturn. It signals to the compiler that your function will not return (i.e. do an infinite loop). Ok, this is good to know. Use the interrupt directive for interrupt handlers. That makes them emit the iret instruction instead of ret

Re: [fpc-devel] AVR embedded Atmega 328p interrupts

2015-11-29 Thread Andrew Haines
On 11/29/2015 02:13 PM, Jeppe Johansen wrote: Not sure the timer initialization is right, but it looks ok. One thing you need is the interrupt procedure directive: procedure TIMER0_overflow; interrupt; public name 'TIMER0_COMPA_ISR'; Otherwise it'll probably reset at some point. Ok I got it

[fpc-devel] AVR embedded Atmega 328p interrupts

2015-11-29 Thread Andrew Haines
Hi, I am experimenting with the avr embedded compiler from trunk and am trying to set an interrupt. I am not sure how to do it. The interrupt I want to change is TIMER0_COMPA_ISR. I see in the startup code there is: .weak TIMER0_COMPA_ISR and later there is: .set TIMER0_COMPA_ISR,

Re: [fpc-devel] AVR embedded Atmega 328p interrupts

2015-11-29 Thread Andrew Haines
On 11/29/2015 02:13 PM, Jeppe Johansen wrote: Not sure the timer initialization is right, but it looks ok. One thing you need is the interrupt procedure directive: procedure TIMER0_overflow; interrupt; public name 'TIMER0_COMPA_ISR'; Otherwise it'll probably reset at some point. What

Re: [fpc-devel] Spam in FPC lists (Was: Fwd: [8])

2014-05-09 Thread Andrew Haines
Hi yes unfortunately my account was hacked. Several hundred messages were sent in about fifteen minutes before I changed my password. Sorry for the noise. Andrew Haines On May 8, 2014 1:41:50 PM EDT, Tomas Hajny xhaj...@hajny.biz wrote: On Thu, May 8, 2014 16:34, Andrew Haines wrote

[fpc-devel] Spam from me

2014-05-09 Thread Andrew Haines
Sorry for all the spam from me. The password was hacked for my email. I changed it pretty quickly but still at least several hundred emails were sent from my account. Andrew ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

[fpc-devel] Fwd: [8]

2014-05-08 Thread Andrew Haines
Hey! http://www.shonko.com.ar/-message.friend?unesimeza=1915968pivutul=220942 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

[fpc-devel] Fw: (8)

2014-05-08 Thread Andrew Haines
Hey there! http://7ydosug.ru/-hi.friend?elumjluf=850034hexofuve=892308 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] TStrings Add(array of string)

2012-04-01 Thread Andrew Haines
On 04/01/12 05:13, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: I was thinking about TStrings possibly having an overloaded function Add or AddStrings where the argument is an array of string? procedure Add(strs: array of string); overload; or procedure

[fpc-devel] TStrings Add(array of string)

2012-03-31 Thread Andrew Haines
I was thinking about TStrings possibly having an overloaded function Add or AddStrings where the argument is an array of string? procedure Add(strs: array of string); overload; or procedure AddStrings(strs: array of string); overload; Specifically I want this for TProcess.Parameters. since it's

[fpc-devel] elf load order

2012-03-16 Thread Andrew Haines
Hi, I'm trying to figure out the order of events when an elf file is executed. I think that the _start symbol just points to the start of the .text section and crt1 is first followed by crti followed by crtbegin. After that I'm not sure. I am porting fpc to the xenon platform and it uses the

Re: [fpc-devel] elf load order

2012-03-16 Thread Andrew Haines
On 03/16/12 15:27, Sven Barth wrote: On 16.03.2012 19:16, Andrew Haines wrote: Hi, I'm trying to figure out the order of events when an elf file is executed. I think that the _start symbol just points to the start of the .text section and crt1 is first followed by crti followed by crtbegin

Re: [fpc-devel] Bounty for MIPS

2012-01-30 Thread Andrew Haines
On 01/30/12 07:19, Mark Morgan Lloyd wrote: Nikolai Zhubr wrote: Hi, 29.01.2012 19:32, Jy V: [...] on the WNDR3800 the OpenWRT installed gives root@OpenWrt:~# uname -a Linux OpenWrt 2.6.32.27 #5 Wed Dec 21 01:59:33 CET 2011 mips GNU/Linux I've got wndr3800 too, and moreover I don't use it

[fpc-devel] cannot compile fpc 2.6.0 for mips

2012-01-06 Thread Andrew Haines
Hi, I was trying to build a cross complier for mips-linux and met this error: make crossinstall PP=/usr/local/lib/fpc/2.6.0/ppcx64 OS_TARGET=linux CPU_TARGET=mipsel make[4]: Entering directory `/home/andrew/programming/fpc-2.6.0/packages/fcl-web' ./fpmake clean --localunitdir=../..

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Andrew Haines
On 12/12/11 13:50, Jonas Maebe wrote: Hi, A new FPC JVM snapshot has been put online at http://wiki.freepascal.org/FPC_JVM The main new feature is full fledged support for Android/Dalvik, including a Pascal translation of the Android SDK classes. To compile for Android rather than for

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Andrew Haines
On 12/12/11 14:55, ik wrote: I'm trying to build it from the svn repo: http://svn.freepascal.org/svn/fpc/branches/jvmbackend/ . I get the following error: - $ make CROSSOPT=-O2 -g CPU_TARGET=jvm OS_TARGET=java all make: -iVSPTPSOTO: Command not found make: -iSP:

[fpc-devel] Possible to set an object function/procedure to external?

2011-09-12 Thread Andrew Haines
Hi, Is it possible to set a object/class procedure/function to external? I want to do something like this: TGObject = object function new: PGObject; cdecl; external 'libglib.so' name 'g_object_new'; There are other cases where this maps better (i'm ignoring the 'self' parameter in this

Re: [fpc-devel] Running programs with output redirection

2011-07-17 Thread Andrew Haines
On 07/17/11 05:50, Hans-Peter Diettrich wrote: Andrew Haines schrieb: The best way I know is described here: http://wiki.lazarus.freepascal.org/Executing_External_Programs#How_to_redirect_output_with_TProcess Thanks for the link, I didn't know before that redirecting is such a big issue

Re: [fpc-devel] Running programs with output redirection

2011-07-16 Thread Andrew Haines
, count); data.write(buffer, count); end; Result := Proc.ExitStatus; proc.free; data.free; end; usage: RunCommandAndDirectOutput('diff', '-r dir1 dir2', 'diff.txt'); Regards, Andrew Haines ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] Calling conventions

2011-01-03 Thread Andrew Haines
On 01/03/11 06:02, Jonas Maebe wrote: On 03 Jan 2011, at 04:11, Andrew Haines wrote: On linux32 and win32 what cc does fpc use by default? If you mean i386 by 32, it's Delphi-style fastcall, aka register. This calling convention is the default on all i386 platforms. FPC's

[fpc-devel] Calling conventions

2011-01-02 Thread Andrew Haines
(stdcall?) on win32 and just wanted to know if stdcall is for sure what I want. I know on x64 there is only one calling convention each for windows64 and everything_else_64. On linux32 and win32 what cc does fpc use by default? Thanks, Andrew Haines

[fpc-devel] Patch for superscript and unicode in rtf

2010-12-17 Thread Andrew Haines
Hi, could somebody apply the patch in this bug http://bugs.freepascal.org/view.php?id=18245 please? :) Thanks Andrew Haines ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] is cross compilation broken?

2010-12-17 Thread Andrew Haines
I had the same result trying to crosscompile to ppc386 from ppcx64. Regards, Andrew Haines ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] is cross compilation broken?

2010-12-17 Thread Andrew Haines
On 12/17/10 13:19, Jonas Maebe wrote: On 17 Dec 2010, at 18:48, Andrew Haines wrote: Is cross compilation broken? Not any more or less than it was in the past. make[3]: Entering directory `/home/andrew/programming/fpc/compiler' Makefile:3582: *** recipe commences before first target

Re: [fpc-devel] fpc.cfg Question

2009-12-01 Thread Andrew Haines
Henry Vermaak wrote: 2009/12/1 Andrew Haines andrewd...@aol.com: Hi, I tried to modify my fpc.cfg like so: #IFDEF arm #IFDEF i386 What am I doing wrong? Hmm, I'm sure I've done something like this. Does cpuarm and cpui386 work instead of arm and i386? Yes this was the problem

[fpc-devel] fpc.cfg Question

2009-11-30 Thread Andrew Haines
Hi, I tried to modify my fpc.cfg like so: #IFDEF arm -XParm-wince- -Xd #ENDIF #IFDEF i386 -Xd -Fl/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/32 -Fl/emul/linux/x86/usr/lib32 -Fl/emul/linux/x86/lib -Fl/lib32 -Fl/usr/lib32 -Fl/usr/local/lib32 #ENDIF I have a ppc386(linux) and also ppcarm(wince) my

[fpc-devel] CHM patches for docs and fpdoc

2009-10-11 Thread Andrew Haines
Hi attached patch for fpdoc adds the option --chm-title so that a nicer title than the default (rtl,fcl,lcl etc) can be used. The second patch is the documentation for the new option Regards, Andrew Index: utils/fpdoc/dw_htmlchm.inc

[fpc-devel] [PATCH] patch to allow TUnzipper to load it's zip file from wherever

2009-08-02 Thread Andrew Haines
Hi, This patch allows TUnzipper to load it's file from any TStream descendant instead of only using a FileName to load a zip stream. Regards, Andrew Haines Index: src/zipper.pp === --- src/zipper.pp (revision 13488) +++ src

Re: [fpc-devel] ref,user and prog in chm format

2009-07-29 Thread Andrew Haines
Marco van de Voort wrote: Btw, could you have a look at this: http://bugs.freepascal.org/view.php?id=13540 and see if you notice anything particular? Sure, I will try to look after work today. Though I remember being slightly confused as to how the quickref was wrong. The MS reader seemed

Re: [fpc-devel] [PATCH] patch for zipper.pp

2009-07-29 Thread Andrew Haines
Micha Nelissen wrote: Do you mind if I say I think this is a very weird event handler? No, of course not :) What is the behaviour? How many times is it called? What does AClosing mean? How do I know I don't have a memory leak? Yes you are right of course. It is confusing. Why an

Re: [fpc-devel] ref,user and prog in chm format

2009-07-29 Thread Andrew Haines
Marco van de Voort wrote: Btw, could you have a look at this: http://bugs.freepascal.org/view.php?id=13540 and see if you notice anything particular? I made some changes and *think* I have fixed the problem in r13476 and r13477. Both the ms reader and 7-zip are happy now. Afaict the

[fpc-devel] [PATCH] patch for zipper.pp

2009-07-28 Thread Andrew Haines
Hi, This patch updates TUnZipper so that files can be unzipped to a custom user stream. To use a custom stream here is an example: UnZip := TUnZipper.Create; // both of the following have to be set or // the builtin method will be used (TFileStream) UnZip.UseCustomOutputStream := True;

Re: [fpc-devel] ref,user and prog in chm format

2009-07-28 Thread Andrew Haines
Marco van de Voort wrote: L.s. I've made a few scripts that (1) fix (some of) the html output of tex4ht. (fpcdocs/relinkdocs.pp) (2) compress them to chm with generated toc and searchability (fpcdocs/compilelatexchm.pp) This enabled me to compile the most

Re: [fpc-devel] can r12368 be merged to fixes?

2008-12-16 Thread Andrew Haines
Joost van der Sluis wrote: Op maandag 15-12-2008 om 23:52 uur [tijdzone -0500], schreef Andrew Haines: It fixes a really terrible memory leak. No. Not for now at least. First wait for the testsuite-results (if there are no tests for this particular part, then we even have to wait

[fpc-devel] can r12368 be merged to fixes?

2008-12-15 Thread Andrew Haines
It fixes a really terrible memory leak. Thanks Andrew ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] Is LNet planned to be included in a fpc release?

2008-12-08 Thread Andrew Haines
? Regards, Andrew ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] [PATCH] for fpdoc chm part

2008-11-25 Thread Andrew Haines
Hi, this fixes the TOC and Index when generated in a windows computer so \ is changed to / Regards, Andrew Index: dw_htmlchm.inc === --- dw_htmlchm.inc (revision 12229) +++ dw_htmlchm.inc (working copy) @@ -179,12 +179,12 @@

Re: [fpc-devel] [PATCH] for chm search ability for fpdoc

2008-11-14 Thread Andrew Haines
Michael Van Canneyt wrote: On Fri, 14 Nov 2008, Andrew Haines wrote: hi attached is a patch to add the option --make-searchable to fpdoc for the chm target It can take some time to index all the documents in the rtl for example. Applied, and merged to fixes, so it gets included

Re: [fpc-devel] [PATCH] for chm search ability for fpdoc

2008-11-14 Thread Andrew Haines
Michael Van Canneyt wrote: On Fri, 14 Nov 2008, Andrew Haines wrote: hi attached is a patch to add the option --make-searchable to fpdoc for the chm target It can take some time to index all the documents in the rtl for example. Applied, and merged to fixes, so it gets included

[fpc-devel] [PATCH] for chm search ability for fpdoc

2008-11-13 Thread Andrew Haines
hi attached is a patch to add the option --make-searchable to fpdoc for the chm target It can take some time to index all the documents in the rtl for example. Regards, Andrew Index: dw_htmlchm.inc === --- dw_htmlchm.inc

[fpc-devel] Address of procedures in linked libs

2008-05-06 Thread Andrew Haines
Hi, In a dynamically linked in library (not dlload) if I do @SomeProcInSharedObject is it giving me the address of the code in memory or something else? For instance I tried to overwrite a proc in gtk like so: Orig_addr := PtrUInt(@gtk_widget_get_name); New_addr :=

[fpc-devel] Freepascal in microcontrollers

2008-02-22 Thread Andrew Haines
processors. Also since there is no OS on these devices does that mean that for sure fpc cannot work? Regards, Andrew Haines A 32 bit microcontroller: http://www.microcontroller.com/news/microchip_pic32.asp ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] [PATCH] docs for fpdoc chm options

2007-12-29 Thread Andrew Haines
Andrew Haines wrote: Andrew Haines wrote: Hi this documents all the new chm options for fpdoc and also fixes the Makefile.fpc file to use a tab instead of spaces for the target chm. Regards, Andrew bump ah maybe the tab character is changed by my mail client. I guess

Re: [fpc-devel] FP 2.4 questions

2007-12-28 Thread Andrew Haines
Fabio Dell'Aria wrote: But on the wiki I found same ppumove winnt examples: http://www.freepascal.org/docs-html/user/userse42.html#x149-1490008.7 I suspect that those docs are outdated. It's been quite some time since ar.exe needed to be copied to arw.exe or ld.exe needed to be copied to

[fpc-devel] [PATCH] for fpdoc docs

2007-12-23 Thread Andrew Haines
Hi, I added to the docs imformation on the chm part of fpdoc. There are five or six options I would like to document better than the short description --help --format=chm gives, where should they go in fpdoc.tex? Regards, Andrew Index: fpdoc.tex

[fpc-devel] [PATCH] docs in chm

2007-12-21 Thread Andrew Haines
Hi the attached patch is my attempt of editing the Makefile.fpc file in the docs repositiory. It makes it so you can build the rtl and fcl docs as chm files with: make chm Regards, Andrew Index: Makefile.fpc === --- Makefile.fpc

Re: [fpc-devel] [PATCH] docs in chm

2007-12-21 Thread Andrew Haines
Michael Van Canneyt wrote: On Fri, 21 Dec 2007, Andrew Haines wrote: Hi the attached patch is my attempt of editing the Makefile.fpc file in the docs repositiory. It makes it so you can build the rtl and fcl docs as chm files with: make chm Applied. Thank you. Wow, that was fast

[fpc-devel] [PATCH] another patch for fpcdocs

2007-12-21 Thread Andrew Haines
Hi, Apparently I don't know much about makefiles and the last patch I sent makes only chm files and not html files ever. So here is another patch that fixes that. Also I've decided that I don't like makefiles. :) I can't believe how long it took for me to find a solution to the problem :(

Re: [fpc-devel] chmreader [PATCH]

2007-12-13 Thread Andrew Haines
Michael Van Canneyt wrote: On Wed, 12 Dec 2007, Andrew Haines wrote: Andrew Haines wrote: Hi, the last patch had a couple of writeln's that were left in by accident :( Here's a patch. bump :) Can you resend the patch ? I didn't see it ? Attached. Andrew Index: packages/extra/chm

Re: [fpc-devel] chmreader [PATCH]

2007-12-12 Thread Andrew Haines
Andrew Haines wrote: Hi, the last patch had a couple of writeln's that were left in by accident :( Here's a patch. bump :) ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] weird syntax

2007-12-10 Thread Andrew Haines
Hi, Is it possible to make this work: if X 3 or 10 then ... of course it would be shorthand for: if (X3) or (X10) then I suppose also it would be possible then to do: if X 3 or -1 or = 4000 or = 100 then... Andrew ___ fpc-devel

Re: [fpc-devel] internal linker import by index patch (xbox)

2007-09-20 Thread Andrew Haines
Yury Sidorov wrote: Actually import by ordinal is implemented in works. Look at line 2416 of ogcoff.pas When AOrdNr 0 it indicates that import is by name, but ordinal number is specified as hint. Whan AOrdNr 0 then import by ordinal only. Okay yes I see that, but that is for the import

Re: [fpc-devel] internal linker import by index patch (xbox)

2007-09-20 Thread Andrew Haines
Yury Sidorov wrote: From: Andrew Haines [EMAIL PROTECTED] Yury Sidorov wrote: Actually import by ordinal is implemented in works. Look at line 2416 of ogcoff.pas When AOrdNr 0 it indicates that import is by name, but ordinal number is specified as hint. Whan AOrdNr 0 then import

[fpc-devel] internal linker import by index patch (xbox)

2007-09-19 Thread Andrew Haines
) Sorry if none of this makes sense, I think I may have overloaded my brain on this one :) Thanks, Andrew Haines ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] passing -shared to ld(win32)

2007-08-30 Thread Andrew Haines
Hi, I've been trying to make the xbox a target for fpc and have run into a problem. I need to pass --shared to ld. I tried with some c code to see if --dll was enough but it didn't work Essentially I've copied the t_win.pas and i_win.pas files and modified them for the xbox. [EMAIL PROTECTED]

[fpc-devel] how _WinMainCRTStartup works?

2007-08-25 Thread Andrew Haines
Hi, I am trying to implement the xbox as a target for fpc and am wondering how _WinMainCRTStartup is linked into the executable? all I've found is sysinitpas.pp for win32 which is used by buildrtl.pp but I don't see that buildrtl is referenced except in the makefile. So how does the code in

[fpc-devel] CHM compiler

2007-07-05 Thread Andrew Haines
Hi all, I've been working on a compiler for creating CHM files. It's pretty much done. :) I've written a GUI to create and compile project files also a simple command line program that compiles project files. And a Sitemap editor (part the GUI) needed to make the Table of Contents and the Index.

[fpc-devel] Freepascal made chm compiler test file

2007-06-26 Thread Andrew Haines
text This is a test of a chm that was generated with only pascal code and uses no external libraries. How cool is that? /end text Please let me know if this file works for you. Thanks, Andrew Haines test.chm Description: application/chm ___ fpc-devel

[fpc-devel] is hu.freepascal.org hacked?

2006-10-20 Thread Andrew Haines
is http://www.hu.freepascal.org/ hacked? Andrew ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] is hu.freepascal.org hacked?

2006-10-20 Thread Andrew Haines
Daniƫl Mantione wrote: Op Fri, 20 Oct 2006, schreef Andrew Haines: is http://www.hu.freepascal.org/ hacked? Not at all, it was showing Scenergy's homepage in progress :) Ok that's good :) Andrew ___ fpc-devel maillist - fpc-devel

[fpc-devel] x64 resources

2005-12-06 Thread Andrew Haines
Hi, Is support for resources {$R someresource.res} planned for ppcx64? Thanks, Andrew ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Where can I find tutorials/codes

2005-11-21 Thread Andrew Haines
VisionForce wrote: Where might I be able to find some good Win32 forms and controls tutorials for Pascal? All the available docs for freepascal are here: http://www.freepascal.org/docs.html Have you checked out Lazarus? It's a CrossPlatform Delphi-like IDE.