Re: [fpc-devel] Windows Console App

2020-04-25 Thread Gerhard Scholz
Hi, I would like to know how you did that since it was exactly what I was searchomg for a while ago... Could you send me a piece of code? Greetings Gerhard - Original Message - From: Ozz Nixon via fpc-devel To: FPC developers' list Cc: Ozz Nixon Sent: Sunday, April 26, 2020 2:21

Re: [fpc-devel] Windows Console App

2020-04-25 Thread Ozz Nixon via fpc-devel
Sure! I assume you are asking how to make a console app? You do not need {$APPTYPE CONSOLE} ... instead, you simply write your code like normal: Program example; Uses CRT; Begin ClrScr; Writeln('Wassup?!'); Readln; End. then in the command prompt (any OS), simply fpc example

Re: [fpc-devel] New feature announcement: constant parameters for generics

2020-04-25 Thread Ryan Joseph via fpc-devel
> On Apr 26, 2020, at 5:13 AM, Sven Barth via fpc-devel > wrote: > > The Free Pascal team is happy to announce the addition of a new language > feature: constant parameters for generics. Excellent! Thanks for getting this merged. It was a long battle but it's finally over. ;) Regards,

[fpc-devel] Windows Console App

2020-04-25 Thread Ozz Nixon via fpc-devel
Anyone ever experience making a console app (cross-platform), but, on windows when the app finishes, it appears to have put an uppercase C or D in the keyboard buffer, so the Prompt now has C:\>D ??? Every time I run my app, be it show help screen and end, or actually execute - when it finishes I

[fpc-devel] New feature announcement: constant parameters for generics

2020-04-25 Thread Sven Barth via fpc-devel
The Free Pascal team is happy to announce the addition of a new language feature: constant parameters for generics. This allows to declare generic types or routines that aside from type parameters can also take constant parameters that can be used inside the generic as if one would use untyped

Re: [fpc-devel] Cannot compile fpc with latest trunk on MacOSX

2020-04-25 Thread Florian Klämpfl
Am 25.04.20 um 16:46 schrieb Michael Ring via fpc-devel: make -j clean buildbase FPC=~/fpcupdeluxe/fpc/bin/x86_64-darwin/fpc.sh works fine with fpc checkout from a few days ago, with todays trunk I get the following error: Should be fixed. ___ fpc-d

Re: [fpc-devel] Cannot compile fpc with latest trunk on MacOSX

2020-04-25 Thread J. Gareth Moreton
This has probably already been identified, but %r15 etc should be %r15d. You can't zero- extend directly to a 64-bit register because zero-extending to 32-bit is guaranteed to zero the upper 32 bits. Gareth aka. Kit On Sat 25/04/20 18:00 , "Jonas Maebe" jo...@freepascal.org sent: > On 25/04/2

Re: [fpc-devel] Cannot compile fpc with latest trunk on MacOSX

2020-04-25 Thread Jonas Maebe
On 25/04/2020 16:46, Michael Ring via fpc-devel wrote: > /Users/ring/devel/fpc/rtl/units/x86_64-darwin/system.s:3469:15: error: > invalid operand for instruction >     movzbl  %r12b,%rdx >   ^~~~ Probably caused by r45057. It would be nice if the internal assembler were mo

Re: [fpc-devel] Nasty generics-bug, already known?

2020-04-25 Thread Sven Barth via fpc-devel
Am 24.04.2020 um 22:27 schrieb Joost van der Sluis: Hi all, Sven, I have a very nasty bug related to generics. Suppose that I have a unit with a generic-class in it. Nothing more. This unit is in a package. Now I also have a unit which is part of an application. Within this unit I specializ

[fpc-devel] Cannot compile fpc with latest trunk on MacOSX

2020-04-25 Thread Michael Ring via fpc-devel
make -j clean buildbase FPC=~/fpcupdeluxe/fpc/bin/x86_64-darwin/fpc.sh works fine with fpc checkout from a few days ago, with todays trunk I get the following error: /Library/Developer/CommandLineTools/usr/bin/make rtl /Library/Developer/CommandLineTools/usr/bin/make -C /Users/ring/devel/fpc/

[fpc-devel] Discussion: XML node dump extensions

2020-04-25 Thread J. Gareth Moreton
Hi everyone, I would like to propose extending the XML node dumping feature for the compiler in order to help with development of new compiler features, especially where node optimisation is concerned (e.g. pure functions, vectorisation).  Currently, I have added support to show some elements