Re: [fpc-pascal] FPC run (run program after compile)

2017-01-22 Thread Lars
On Sat, January 21, 2017 11:54 pm, I previously wrote:
> https://github.com/z505/fpcRun
>
>
> Project started on github. Tested to work on Windows.
>
>
> Now I just have to try Unix, as, executeprocess works slightly different
> on that system and some absolute path configuration to fpc might be needed.
>

Solution was to use fpSystem instead of ExecuteProcess on unix, and use
ExecuteProcess on Windows

fpr or FPCRUN project seems to work good so far on linux and windows now.

Bsd/macos I have not tested
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-22 Thread gabor

This significantly complicates my project. I would avoid this.
After a few tests, I can say that it works correctly with the linked 
system unit and cmem. Unfortunately, this greatly complicates build 
process which is disproportionate to amount of code. So I decided to do 
it in C for now.


Thanks.
Michał.

W dniu 2017-01-22 o 08:01, Lars pisze:

Forgot to mention,  you can also write your own system unit and swap it in
place (in delphi and fpc).  You can modify existing system unit or even
rewrite your own system unit from scratch..

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Marc Santhoff
Hi,

I'd like to know if the floating point hardware on STM32F103 is
supported by the fpc cross compiler. ARmv7 this is according to:

http://j-software.dk/stm32f103.php

Will fpc use floating point support on those SoCs?

TIA,
Marc


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Florian Klämpfl
Am 22.01.2017 um 19:33 schrieb Marc Santhoff:
> Hi,
> 
> I'd like to know if the floating point hardware on STM32F103

What floating point hardware does it have? According to a quick search, it is a 
Cortex-M3 which has
no hardware floating point support?

> is
> supported by the fpc cross compiler. ARmv7 this is according to:
> 
> http://j-software.dk/stm32f103.php
> 
> Will fpc use floating point support on those SoCs?
> 
> TIA,
> Marc
> 
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Marc Santhoff
On So, 2017-01-22 at 21:20 +0100, Florian Klämpfl wrote:
> Am 22.01.2017 um 19:33 schrieb Marc Santhoff:
> > Hi,
> > 
> > I'd like to know if the floating point hardware on STM32F103
> 
> What floating point hardware does it have? According to a quick search, it is 
> a Cortex-M3 which has
> no hardware floating point support?

Indeed, you're right. Having my head wrapped around a cpouple of
different SoCs I was blinded by the F in the name. Cortex-M4 may have
floating point hardware, if the implementer decides to build it into the
chip.

OK, moving the question to the STM32F4xx devices having "ARM FPv4-SP
single-precision FPU". Does fpc support that one?

> 
> > is
> > supported by the fpc cross compiler. ARmv7 this is according to:
> > 
> > http://j-software.dk/stm32f103.php
> > 
> > Will fpc use floating point support on those SoCs?
> > 
> > TIA,
> > Marc
> > 
> > 
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> > 
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Florian Klämpfl
Am 22.01.2017 um 21:43 schrieb Marc Santhoff:
> On So, 2017-01-22 at 21:20 +0100, Florian Klämpfl wrote:
>> Am 22.01.2017 um 19:33 schrieb Marc Santhoff:
>>> Hi,
>>>
>>> I'd like to know if the floating point hardware on STM32F103
>>
>> What floating point hardware does it have? According to a quick search, it 
>> is a Cortex-M3 which has
>> no hardware floating point support?
> 
> Indeed, you're right. Having my head wrapped around a cpouple of
> different SoCs I was blinded by the F in the name. Cortex-M4 may have
> floating point hardware, if the implementer decides to build it into the
> chip.
> 
> OK, moving the question to the STM32F4xx devices having "ARM FPv4-SP
> single-precision FPU". Does fpc support that one?

Yes. Compile with -Cffpv4_s16 while using rtl/packages built with 
CROSSOPT=-Cffpv4_s16, just add
this to the command line provided by Jeppe's site.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc for ARM on STM32F103

2017-01-22 Thread Marc Santhoff
On So, 2017-01-22 at 22:05 +0100, Florian Klämpfl wrote:
> Am 22.01.2017 um 21:43 schrieb Marc Santhoff:
> > On So, 2017-01-22 at 21:20 +0100, Florian Klämpfl wrote:
> >> Am 22.01.2017 um 19:33 schrieb Marc Santhoff:
> >>> Hi,
> >>>
> >>> I'd like to know if the floating point hardware on STM32F103
> >>
> >> What floating point hardware does it have? According to a quick search, it 
> >> is a Cortex-M3 which has
> >> no hardware floating point support?
> > 
> > Indeed, you're right. Having my head wrapped around a cpouple of
> > different SoCs I was blinded by the F in the name. Cortex-M4 may have
> > floating point hardware, if the implementer decides to build it into the
> > chip.
> > 
> > OK, moving the question to the STM32F4xx devices having "ARM FPv4-SP
> > single-precision FPU". Does fpc support that one?
> 
> Yes. Compile with -Cffpv4_s16 while using rtl/packages built with 
> CROSSOPT=-Cffpv4_s16, just add
> this to the command line provided by Jeppe's site.

Very nice. :)

Many thanks for answering and clearing things up,
Marc

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] Connect to 'https://...' url with fphttpclient ?

2017-01-22 Thread fredvs
Hello.

Is it possible to connect with 'https:// files with fphttpclient ?

For example, I can access this:

http://broadcast.infomaniak.net:80/alouette-high.mp3

but not  this:

https://github.com/fredvs/uos/blob/master/examples/sound/test.mp3

Thanks.

Fre;D



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Connect-to-https-url-with-fphttpclient-tp5727404.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Connect to 'https://...' url with fphttpclient ?

2017-01-22 Thread fredvs
Ooops, in previous mail, please read this:

Hello. 

Is it possible to connect with 'https:// files with fphttpclient ? 

For example, I can access this: 

http://broadcast.infomaniak.net:80/alouette-high.mp3

but not  this: 

https://sites.google.com/site/fredvsbinaries/test.mp3

Fre;D




-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Connect-to-https-url-with-fphttpclient-tp5727404p5727405.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Connect to 'https://...' url with fphttpclient ?

2017-01-22 Thread Michael Van Canneyt



On Sun, 22 Jan 2017, fredvs wrote:


Hello.

Is it possible to connect with 'https:// files with fphttpclient ?

For example, I can access this:

http://broadcast.infomaniak.net:80/alouette-high.mp3

but not  this:

https://github.com/fredvs/uos/blob/master/examples/sound/test.mp3


It is possible, but not with the 3.0 one, it should be possible with the
3.0.2 one.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] Deleting 'Nonexistent' files under windows

2017-01-22 Thread Rolf Grunsky
Is it possible to access files that have path lengths too long to access 
from explorer through Windows API from Pascal?


I keep ending up with these very long file names which then I can not 
access. It seems that Windows will create the files, usually by copying 
the files from another source but the resulting path is too long to 
access the file or to delete it. Using the "\\?\" trick doesn't always 
work. I really don't want to spend $40 on a program just to delete some 
files. If I get really desperate I can always pull the drive from the 
Windows machine and connect it to the Linux machine but that's starting 
to look like work. A simple command line program would be much easier.


Rolf
--
   TRUTH in her dress finds facts too tight.
   In fiction she moves with ease.
   Stray Birds by Rabindranath Tagore
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Deleting 'Nonexistent' files under windows

2017-01-22 Thread Sven Barth
Am 23.01.2017 05:54 schrieb "Rolf Grunsky" :
>
> Is it possible to access files that have path lengths too long to access
from explorer through Windows API from Pascal?
>
> I keep ending up with these very long file names which then I can not
access. It seems that Windows will create the files, usually by copying the
files from another source but the resulting path is too long to access the
file or to delete it. Using the "\\?\" trick doesn't always work. I really
don't want to spend $40 on a program just to delete some files. If I get
really desperate I can always pull the drive from the Windows machine and
connect it to the Linux machine but that's starting to look like work. A
simple command line program would be much easier.

While in my opinion the Pascal function should work with the "\\?\"
notation (if not, that's a bug) you can always use the corresponding
Windows API function directly (AFAIK DeleteFileW).

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Deleting 'Nonexistent' files under windows

2017-01-22 Thread Marco van de Voort
In our previous episode, Rolf Grunsky said:
> Is it possible to access files that have path lengths too long to access 
> from explorer through Windows API from Pascal?
> 
> I keep ending up with these very long file names which then I can not 
> access. It seems that Windows will create the files, usually by copying 
> the files from another source but the resulting path is too long to 
> access the file or to delete it. Using the "\\?\" trick doesn't always 
> work.

One must also call the unicode api to make that trick work. FPC only does
that since 3.0.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal