On Wed, 2013-05-29 at 18:48 +0200, Koenraad Lelong wrote:
> Op 29-05-13 18:16, Thomas Schatzl schreef:
> >
> > There's snapshot on the ftp.
> Downloaded ftp://ftp.freepascal.org/pub/fpc/snapshot/v27/arm-linux-armhf/
>
> >
> >> Should I do this "nativ
Hi,
On Wed, 2013-05-29 at 14:01 +0200, Koenraad Lelong wrote:
> Op 27-05-13 21:20, Koenraad Lelong schreef:
> > Hi,
> >
> ..
>
> A suggestion on the hardkernel-forum said it might be an armhf problem.
> Is it prossible to compile fpc from armhf ?
There's snapshot on the ftp.
> Should I do this
Hi,
On Fri, 2012-09-21 at 08:42 +0200, Tomas Hajny wrote:
> On Thu, September 20, 2012 17:30, Reinier Olislagers wrote:
> > On 20-9-2012 17:25, Jonas Maebe wrote:
> >>
> >> On 20 Sep 2012, at 17:18, Reinier Olislagers wrote:
> >>
> >>> Would looking into the actual fpmake bug make sense (i.e. is i
Hi,
On 08/ 9/12 05:08 PM, Rainer Stratmann wrote:
Just because it sounds that way: is it possible inside the procedure?
Yes, if the label declaration is also inside the procedure. You can
only take the address of a globally declared label iff
a) the label is also defined in the global scope ("b
Hi,
On 08/ 9/12 03:09 PM, Rainer Stratmann wrote:
How is it possible to put some inline bytes in the code like the former
inline( $1f , $ef , $1A );
instruction?
Not sure if it is the official way, but the following works:
with {$asmmode att}
asm
.byte 0x1f, 0xef, 0x1a
end;
and with {$asm
HI,
On Mon, 2012-07-23 at 16:58 +0200, OBones wrote:
> Jonas Maebe wrote:
> > On 23 Jul 2012, at 10:58, OBones wrote:
> >
> >> leledumbo wrote:
> >>> I look at the generated code and in the direct one there's additional
> >>> overhead of decrementing the reference counter on each iteration.
> >> I
Hi,
On Thu, 2012-07-12 at 09:47 +, Mark Morgan Lloyd wrote:
> Ludo Brands wrote:
>
> Builds OK on SPARC Solaris 10 using 2.6.0, but on running get a
> consistent error
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to LWP 4]
> 0x004b08b8 in TPQCONNECTION__LOADFIELD (CU
Hi,
On Fri, 2012-05-04 at 14:14 +0200, Koenraad Lelong wrote:
> On 03-05-12 13:27, Thomas Schatzl wrote:
> ...
> > function reverse(b : byte) : byte; assembler; nostackframe;
> > asm
> >.long 0xe6ff0f30 // rbit r0, r0
> >lsr r0, r0, #23
> > end;
>
Hi,
On Thu, 2012-05-03 at 12:54 +0200, Ludo Brands wrote:
> > Thanks all for your replies.
> > I already found the RBIT-instruction. I also found out I need
> > to study
> > the arm assembly language ;-)
> >
> > But how do I get my variable ? Is that in some register ? Is
> > there any
> > do
Hi,
On Thu, 2012-05-03 at 07:55 +, Mark Morgan Lloyd wrote:
> Koenraad Lelong wrote:
> > Hi,
> >
> > I'm porting a driver, originally written in C, for an LCD to be used
> > with an embedded arm-processor (STM32).
> > The original driver uses SPI, my driver will use a USART in synchronous
>
Hi,
On Sun, 2012-04-29 at 17:38 +0200, Florian Klämpfl wrote:
> Am 29.04.2012 17:34, schrieb Thomas Schatzl:
> > Hi
> >> florian@ubuntu32:~$ ldd ./test
> >> libfprtl-2.7.1.so =>
> >> /home/florian/./fpc/svn/rtl/units/i386-linux/libfprtl-2.7,
>
Hi
On Sun, 2012-04-29 at 15:50 +0200, Florian Klämpfl wrote:
> Am 29.04.2012 15:13, schrieb Jorge Aldo G. de F. Junior:
> > If you deploy one executable, ok, but if you want to create a handfull
> > of executables (following unix logic of many small programs) then you
> > have a problem.
>
> Indee
Hi,
On Mon, 2011-12-19 at 13:16 +0200, Juha Manninen wrote:
> 2011/11/28 Henry Vermaak
> There is an arm release for 2.6.0rc1, but it was built using
> old binutils (last time I checked, at least):
>
> ftp://freepascal.stack.nl/pub/fpc/beta/2.6.0-rc1/arm-linux/
>
Hi,
Am 28.11.2011 15:18, schrieb Henry Vermaak:
On 28/11/11 13:41, Juha Manninen wrote:
Hi
Is FPC 2.2.2 really the latest native release for ARM processors?
I guess it can build the more recent versions. (?)
There is an arm release for 2.6.0rc1, but it was built using old
binutils (last time
Hi,
On Wed, 10 Aug 2011 11:59:03 +0200, Thomas Schatzl wrote:
Hi,
On Wed, 10 Aug 2011 11:09:26 +0200, Felipe Monteiro de Carvalho
wrote:
Hello, I am ressuscitating this ancient thread because I'd like to
continue the talk about it =)
My main doubt here is if androidprt0.as is r
Hi,
On Wed, 10 Aug 2011 11:09:26 +0200, Felipe Monteiro de Carvalho wrote:
Hello, I am ressuscitating this ancient thread because I'd like to
continue the talk about it =)
My main doubt here is if androidprt0.as is really required, which
would mean that I can only produce android libraries if I
Hi,
On Tue, 12 Apr 2011 02:56:39 -0700 (PDT), herux wrote:
I managed to compile and run the library for android on emulator,
which I
compile the project just a libhellojni.so
compile using paramater like this
ppcarm -Scghi -O1 -Parm -gl -b -B -XX -Xc -XD -CpARMv6 -CfSOFT
-dandroid
-vewnhi -
On Wed, 09 Mar 2011 13:23:55 -0500, Andrew Haines wrote:
On 03/09/11 12:26, Thomas Schatzl wrote:
Hi,
On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote:
if Tmp <> Im then
begin
//Tmp := ln(Tmp)*LogBase+Shift; // same as the following
asm
proc?
Hi,
On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote:
if Tmp <> Im then
begin
//Tmp := ln(Tmp)*LogBase+Shift; // same as the following asm
proc?
asm
FLD LogBase;
FLD Tmp;
FYL2X;
FYL2X calculates the log to the base 2 of tmp, no
Hi,
On Sun, 27 Feb 2011 04:32:14 -0800 (PST), Dejan Boras
wrote:
> Is there anyone on this list who uses fpc with android under windows and
> the android emulator(armv5) without problems(e.g. basic functionality at
> least like sysutils, ansistrings, ...)? I'm just trying to figure out if
> I'm d
Hi,
On Tue, 22 Feb 2011 13:34:06 -0500, Andrew Haines
wrote:
> On 02/22/11 12:06, de_jean_ wrote:
>> Now that I have a working fpc crosscompiler for Android, and all the
>> code runs ok, I encountered another problem. Namely working with
>> ansistrings causes crashes. For example, in a simple
Hi,
On Mon, 20 Dec 2010 19:33:51 -0800 (PST), leledumbo
wrote:
> [...]
> Program received signal SIGSEGV, Segmentation fault.
> 0x in ?? ()
> (gdb) bt
> #0 0x in ?? ()
> #1 0x00406c32 in SYSTEM_TOBJECT_$__FREE ()
> #2 0x0040d916 in TFPGOBJECTLIST$TLLVMVALUE__DEREF (ITEM=0x55138
Hi,
On Tue, 02 Nov 2010 23:49:03 +0100, Bo Berglund
wrote:
> On Tue, 02 Nov 2010 22:53:21 +0100, Vinzent Höfler
> wrote:
>
>>On Tue, 02 Nov 2010 21:39:31 +0100, Felipe Monteiro de Carvalho
>> wrote:
>>
>>> On Tue, Nov 2, 2010 at 7:04 PM, Bo Berglund
>>> wrote:
Thanks, that helps a lot
Hi,
> Or maybe this is a moot question if FPC is only so far running on
> platforms that have the same endian as x86 CPU:s? I have no
> information on this though...
>
> I can see at least these targets:
> - Windows and Linux on x86 CPU:s
> - Embedded Linux on ARM CPU:s
Sparc, PowerPC are big en
Hi,
On Tue, 24 Aug 2010 10:53:55 +0100, Geoffrey Barton
wrote:
>>
>> Date: Mon, 23 Aug 2010 13:57:30 -0300
>> Thanks Jonas and Jeppe for your answers. I will probably wait then to
>> switch (or try to convince the company to use an ARM-9)
>
> using Jonas and Jeppe's answers to my idiot question
>Andrew Bennett
>Sat, 11 Mar 2006 17:24:51 -0800
>
>On Sat, 11 Mar 2006 13:44:52 +0100, Pianoman wrote:
>
>>Hi, I need to perform very fast squareroot (sqrt) operations on double
>> type nukmbers.
>>I tried this
>>function mysqrt(a:double):double;
>> [...]
>>yn:=(y*y+a)/(2*y);
>>until abs(yn-y) <
Hello,
Michael Van Canneyt schrieb:
On Thu, 7 Apr 2005, Thomas Schatzl wrote:
Summing MI with interfaces up:
- interfaces are only specifications, so there is no clash of implementations
- they neither have some initialization, so there's no problem about
constructing the instance either
-
Hello,
Marco van de Voort schrieb:
That there are different types of iterators (forward, backward, and
random access, readonly, writeable, ...) is definitely a feature of a
specific iterator imo.
I'm more thinking on different properties. E.g. on address, on name etc.
I don't understand that rem
Hello,
Thomas Schatzl schrieb:
Michael Van Canneyt schrieb:
For example;
MI for interfaces for me is strange (to say the least) because
interfaces were introduced to avoid the mess of MI in the first
place. So why on earth would you want to introduce it ??
Since interfaces do not have/inherit
Hello,
Marco van de Voort schrieb:
you could write:
x : TSomeElement;
someCollection : TSomeCollection;
[...]
foreach elem in someCollection do begin
<< do something with elem >>
end;
[...]
True, BUT... hmm, I actually have 3 BUTS
It is some sort of syntactic sugar, so all your but's are va
Hello,
Michael Van Canneyt schrieb:
For example;
MI for interfaces for me is strange (to say the least) because
interfaces were introduced to avoid the mess of MI in the first
place. So why on earth would you want to introduce it ??
Because MI itself isn't bad, it's often an appropriate representat
Hello,
>>
>>Probably this also gives some additional opportunities for code
>>optimizations.
>
> Well, I bet people would cry if the iterator works randomly and not
> element by element :)
Don't know why you're so focused at this point, but certainly, yes,
they would =) but as I already mentioned,
Hello,
I think I have to make some things more clear why I am in favor of
that "foreach":
Thomas Schatzl schrieb:
Features being developed now are:
MI interfaces 90% (MI=multiple inheritance)
Inclasses 15% (embedded classes)
foreach 0% (well, we know you hate it)
It's a usele
Hello,
everything below is imho as usual... ;)
Florian Klaempfl schrieb:
(wow, that's a long "currently", and a lot
of 1-2 weeks)? And my best guess is that interfaces are
>>not part of the 2.0 plan (even bug reports and fixes I made were
>>completely ignored, just like interfaces aren't part of
[EMAIL PROTECTED] schrieb:
Quoting Michael Van Canneyt <[EMAIL PROTECTED]>:
On Thu, 31 Mar 2005, ml wrote:
I have downloaded and checked the patch, however I'm not a compiler person.
The RTL patch looks OK to me. have you checked what happens with an object
passed through COM ?
COM? as I already
Hello,
note in advance: if I mention CORBA interfaces, I actually mean "CORBA
style" or Java/.net like interfaces (which are not real CORBA interfaces
anyway) in the following (too lazy to do a search&replace or find
another term).
[EMAIL PROTECTED] schrieb:
ml schrieb:
Hmmm, Delphi gives a compil
Hello,
ml schrieb:
I made one wrong statement.
It's not "as" that doesn't work. getinterfaceentry works only for
interfaces that have guid specified. By default guid is zeroed, and
getinterfaceentry just returns first interface in table, which means
wrong. Same problem shows in Support too.
Hmmm, D
Hello,
MichaÅ WoÅniak schrieb:
Is it possible in FPC to incorporate something like Delphi resources into the
compiled program?
What I need is including a binary file within the executable (like when using
BRCC32 and *.rc files in Delphi) so that its contents are accessible to the
program at runt
Hello,
Pianoman schrieb:
Hello, how can I create resident programs for WIN32 in FPC?
Any help or docs would be appreciated.
Pianoman
There are no special "resident" programs anymore, simply create a normal
GUI app with an invisible window or a service. See below for more info:
E.g.
Use {$APPTYPE
Hello,
Pianoman schrieb:
I Have two questions:
Is there any windows/DOS port of the numerix library?
Since Google reveals lots of libraries called "numerix", it may be
helpful for others to be more specific.
(I personally don't know any Numerix library, even less ones ported for FPC)
2. How to de
Hello,
Janos Krizan schrieb:
Dear Sirs,
It is so complicated. I am not subscribed but I need help anyway in
> order to get started.
[A copy of this answer is cc'ed to the original From: address]
I have dosw321010full.zip version of free Pascal and I can not make
> it work. I suspect that it has to
Hello,
Jérémie LEFRANCOIS schrieb:
I would be very happy to solve the following problem, any suggestion is welcome.
I work with MS-DOS 6.2, trying to port from TP55 to Freepascal GO32.
There is a terminate stay resident program (for which I have no access to the
sources) that deals with the interfa
Hello,
I'd like to try using JEDI-SDL but the directions only tell how to set
up the IDE... not how to use the command line compiler under Linux.
I'm stumped on a few of them.
I condensed the following from the JEDI-SDL Yahoo Group instructions and
added what I think the corresponding command-li
Hello,
Exactly, which is why I prefer the idea Borland has gone for. The STL
is not
a good idea.
The behaviour of the d9 iterators appear to me very unspecific. In which
I think this is because the origin of this information is only a blog
entry, no specification...
order does it iterate throu
Hello,
In this case
procedure nx_fill(P: PLongword; Count: Longint; Value: Longword);
assembler;
asm
pushl %edi
movlP,%edi // edi <- P
movlValue,%eax // eax <- Value
movlCount,%ecx // ecx <- Count
rep
stosl
Marcel Martin schrieb:
Peter Vreman a écrit :
Check what Delphi does for nested procedures. If it is different from FPC
then FPC will be adapted.
Overall, no :-) Delphi (at least the version 5.01) is bugged.
>
> [example code snipped]
Interestingly, D7 has the same bug.
I think the best thing that
Hello,
I noticed that, with FPC 1.9.4, the (default) calling convention
"register" depends on the fact that a routine is or is not embedded
in an other routine.
With "proc(A,B,C: Longint);", if "proc" is not embedded then
eax = A, edx = B and ecx = C but if "proc" is embedded then edx = A,
ecx = B
Hello,
> I'm attempting to retrieve information about the current resolution
> settings, but I'm not having much luck. I've downloaded the Borland Win32
> API, but I'm still stuck with creating the device context, and so on. I
> need some massive help with this... =(
Because the Borland help f
Hello,
> I have some problem with DefaultHandler method. When I pass a
>message for which is special handler defined everything is ok, but when
>it should be passed to DefaultHandler (which is overriden) it does
>nothing. Here is some sample code:
>
> {$MODE OBJFPC}
> type TMyMessage = record
Hello,
> Is it possible to access the PC BIOS from FPC?
> I want to create a fpc program to read the name and
> version of the BIOS
> or maybe even change some settings like boot from cdrom
> or IDE or PXE using
> FPC. The PC has Phoenix bios, is that possible?
Depends on the platform you're comp
Hello,
> Second - new FPC v1.9.x for statement
>
> var p:pointer
> p:=Ptr(a,b);
>
> shows error "Incompatible types: got "FarPointer" expected "Pointer"".
>
> I found i can declare var p:farpointer;
> but i did not found any description for this type of pointer
> how can i use it.
It seems that t
Hello,
>
> But ehm... it seems your website is locked... unable to view/download code
> etc :)
>
> I thought I'd let you know just in case you forgot to unlock it =D
No, this is a public website and I checked the URL I gave you, it works fine
from my place. Same goes for the links to the sources,
Hello,
>>> x := pos ('Hello', my_str, 6);
>>
>> PosEx() from strutils?
>
>Cant find it in strutils..
Just checked the sources again, at least the 1.9.x branch contains a PosEx
method, line 93ff, from today's sources =)
Regards,
Thomas
___
fpc-pasca
Hello,
I'd like to ask if anyone knows a tool which can automatically generate
PasDoc documentation headers for existing source code. E.g. adding all tags
and probably default dummy values to all method declarations which can to be
filled in by the programmer afterwards. Copy&paste has proven to
Hello,
> > So a computer calling an interrupt routine a million times (for
microsecond
> > accuracy) that does not seem like a good idea performance wise.
> >
> > Also calculating the control word (?) can be inaccurate (?):
control_word
> > := $1234DD div frequency; ( ??? what about the remainder
Hi again,
> > spent a few moments going over the docs in the manual re: exception
> > handling. for some reason it just doesn't seem to be sinking in, as
> > nothing i've tried as of yet has managed to stop prog from crashing when
> > data in input that's of a different type than program is expect
Subject: [fpc-pascal]exception handling
> spent a few moments going over the docs in the manual re: exception
> handling. for some reason it just doesn't seem to be sinking in, as
> nothing i've tried as of yet has managed to stop prog from crashing when
> data in input that's of a different type
Hello,
> > I'm having trouble using Round:
> > - [ BOF: test.pas ] -
> > Program Test ;
> > Uses
> > Math, SysUtils ;
> >
> > Var
> > i : Byte ;
> > Begin
> > For i := 0 to 31 do
> > WriteLn(Format('%d %.8x',[i,Round(Ldexp(1,i))])) ;
> > End.
> > - [ EOF: test.pas ] -
>
Hello,
> Dunno if this is the right place to post such a message, but here goes...
I think you're completely right...
>
> I would love to see a "pos" function that takes an additional parameter,
being the position in the string where it >should START scanning. e.g.:
>
> my_str = 'Hello, everybo
Hello,
> > Can someone explain the semantic difference between *1 and *2 please?
> >
> > procedure A(p: Type1);
> > begin
> > inherited; // *1
> > inherited A(p); // *2
> > end;
> >
> > ?
>
> 1: supporting a delphi bug
> 2: as you expect
>
> Well, the comment to 1 isn't completly true: In met
Hello,
> How can I use fillchar to give an ansistring a value of, say
> 'x'? In other words, I want to create a string that contains
> only a single character, that is repeated a certain number of times.
E.g. this should work (with some typecasting ;-):
{$MODE DELPHI}
var
s : AnsiSt
Hi,
> The following (attached) is a programming problem I've implemented.
> Now I know the way I've done the EOF test is not correct, otherwise it
> would not crash with a runtime error of 106.
It doesn't crash here as long as only valid integers are entered. The doc
for RTE 106 reads: "Invalid n
Hi,
>Can you only have 2 files open with FP? As above, I fixed my problem
> with opening the third file by closing another, and only having 2 open at
> once. My config.sys has "FILES=20", so it's not a DOS limitation by the
> look of it (unless my FP program is opening up another 18 related sy
[Note that I did a copy&paste from the list archives because the mail
address I am subscribed to this list isn't working properly atm. I switched
to another, but this means I couldn't reply to the original posting and so
message threading is broken. Sorry.]
Hi,
>under GO32V2 i want to call BIOS P
Hi,
> Great!
> But does -St also contain the parameters of -S2/-Sd?
> Or can we use them at
> them at the same time? "fpc -St -Sd aaa.pp"?
Yes you can.
Regards,
Thomas
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailma
Hi,
although others have already pointed out a few solutions, here're my two
cents...
> I'm using the graph unit to provide graphing capabilities for my program
> (Win 32 platform). The graph window opens as a separate window, which is
> ok for me - except one point: The graph window gets opene
From: "Thomas Schatzl" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 2:01 PM
Subject: [fpc-pascal]CPU rel2rev23 uploaded
>
> [CPU rel2rev23 update announcement...]
>
As usual forgot to mention the most important thing, the URLs...
http://members.yline.com/~to
Hi,
just updated my CPU package to rel2rev23. No breathtaking news, just a
plain simple update:
- added a new field to the TCPUInfo record which contains the number of
logical processors if Hyperthreading enabled (e.g. P4 only).
- bugfixes for Cyrix processor capabilities (hope they're correct
From: "Matt Emson" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 3:41 PM
Subject: RE: [fpc-pascal]Classes/Objects/Pointers / Pointer Help
> RE: Dynamic arrays, What about using the Tcollection? Is there any
> dis-advantage? I know a lot of TP Programmers swear by them.
No, if you mean the
From: "James Mills" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 2:04 PM
Subject: Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help
Hi,
> Yes ok, fair enough, this much is in my knowledge of Pascal :) hehe, but
> the real question is, how do you create these objects on the fly in a
>
Hi,
well, I read something interesting here so I thought I could write a few
lines. Since I don't have the previous mails anymore and the maillist
archives (http://lists.freepascal.org/mailman/listinfo/fpc-pascal ?) don't
seem to work I hope I'm not missing the discussion point way too much...
71 matches
Mail list logo