Powerbasic Museum 2020-B

IT-Berater: Theo Gottwald (IT-Consultant) => x64 Board => Topic started by: Chris Chancellor on July 24, 2018, 07:47:58 PM

Title: Any more alterntive 64bits compiler to native codes?
Post by: Chris Chancellor on July 24, 2018, 07:47:58 PM
Hello all

i have look thru' the list of 64bits compilers and found that some are already dead

are there anymore alternative 64bits compiler that are not listed here?

C++ is too tough for me, so i appreciate any help
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Theo Gottwald on July 24, 2018, 09:34:25 PM
Did you take a look on the new JK-IDE from Jürgen Kühlwein with its integrated 64´bit Freebasic?
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Chris Chancellor on July 24, 2018, 09:51:29 PM
Thanxx a lot Theo

do you have a hyperlink for this JK IDE?  please provide this link

heard that Freebasic is no longer being developed?
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Charles Pegge on July 25, 2018, 05:39:28 AM
Hi Chris,

https://www.freebasic.net/forum/viewtopic.php?f=8&t=26541

https://jk-ide.jimdo.com/

I see FreeBasic is still being maintained. The source was last updated in June. I would say it's not dead, it's mature :)

https://github.com/freebasic/fbc

Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Chris Chancellor on July 25, 2018, 03:21:15 PM
Thanxx a lot Charles
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Pierre Bellisle on July 26, 2018, 01:13:27 AM
Quote from: Charles Pegge on July 25, 2018, 05:39:28 AM
I would say it's not dead...

On the other hand, I would not say "kicking and alive" with the lost of dkl... Currently inactive (https://www.freebasic.net/forum/viewtopic.php?f=17&t=25691)
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Pierre Bellisle on July 26, 2018, 01:29:17 AM
JK-IDE (A free IDE for PowerBASIC & FreeBASIC) (https://jk-ide.jimdo.com/)
PlanetSquires (http://www.planetsquires.com/protect/forum/index.php)
Paul Squires's WinFBE - code editor - visual designer - WinFBX (https://github.com/PaulSquires/WinFBE)
José Roca's WinFBX - Windows Framework for FreeBASIC (http://www.planetsquires.com/protect/forum/index.php?board=39.0)
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Chris Chancellor on July 26, 2018, 04:35:50 AM
Thanxx a lot Pierre

my boss has spent the last 20 years programming in TB and PB and now being subjected to customer's pressure to
produce 64bits apps.  so it doesn't matter whether FB died or not,  we will have to produce 64bits

PB is dead 32bits and won't see any progress for the next 5 years. that is we won't see 64bits PB compiler during these
next 5 years.  it is like wishing for snow to fall on the Sun's surface.

so  in the interim,  compilers like FB , O2 , C++ and C# will save our programs as  they already have proven 64bits compiler
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Chris Chancellor on July 26, 2018, 04:39:26 AM
what is this Jose's  WinFBX ?   looks to me it is like a group of wrapper functions with winapi ?

i would need some examples on how to use WinFBX and where can i get them?
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Pierre Bellisle on July 26, 2018, 05:58:04 PM
Yep, here is the forum thread header.

WinFBX - Windows Framework for FreeBASIC
Awesome Windows Framework for FreeBASIC.
Hundreds of functions and classes for anything Windows programming related.
This is a must have programming toolkit.

It's José made, so it is high quality, and also an enormous piece of work.
If José or Paul is around and feel like it, they may give you more infos on this work and where to find examples.

As I see it, depending on your need of course, FB is without a doubt a really good choice.
Note that it is a more complex and precise universe than the one given by PB, so some time to be comfortable will probably be needed.



Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Chris Chancellor on July 27, 2018, 01:08:10 AM
thanxx a lot Pierre for your info

all i need now is to convert some PB programs to FB 64bits
especially when its Winapi includes are provided by Jose 's  WinFBX

in PB, we are using a lot of Jose's Winapi includes so it is only natural that we are migrating to Jose's WinFBX

i wonder how stable is FB 64bits,  any ideas?
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Pierre Bellisle on July 27, 2018, 04:07:43 AM
From what I seen, it's rocksolid.
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: José Roca on July 27, 2018, 04:11:32 AM
Examples and templates are available if you install the WinFBE editor.

They are also available separately in my GitHub repository:
https://github.com/JoseRoca/WinFBX

On-line help for the WinFBX framework:
https://github.com/JoseRoca/WinFBX/tree/master/docs

The WinFBX framework provides almost all the PowerBasic functionality missing in FreeBasic and much more. Everything compiles in both 32 and 64 bit without any changes and everything is unicode aware.

Perhaps the most important class is CWSTR, that implements support for dynamic unicode strings and works transparently with the FreeBasic string functions and operadors, as well as with the Windows API and other C libraries.

Instead of implementing "A" (ansi) and "W" (unicode) functions, I have taken advantage of casting and automatic conversions. Therefore, although all the wrappers are unicode aware, you can use STRINGs, ZSTRINGs, WSTRINGs, CWSTRs, CBSTRs, CVARs and string literals transparently. Like with the Windows API, using unicode with them will be slightly faster, since no conversions are needed.

Probably the thing that more annoys PowerBasic users new to FreeBasic is the strict type checking, that, like with C++, compels the use of the appropriate data type (or alias) and frequent type casting. It annoyed me for a while, but I have got accostumed. None of the PowerBasic SDK programmers that are using FreeBasic haved had big problems. DDT programmers will have to learn SDK programming. Don't expect a PowerBasic to FreeBasic converter.

The lack of a lead developer means that no new features are being added for the moment, but some FBer's are still maintaining the compiler fixing bugs and improving the documentation. Fixing bugs is more important to me that adding multiple inheritance or a LLVM backend.

> I wonder how stable is FB 64bits,  any ideas?

I have used FB 64 bit extensively without any problem. In fact, I use 64 bit more often than 32 bit, since my main motivation to use FB was to experiment with 64 bit programming.

Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Chris Chancellor on July 27, 2018, 04:51:38 AM
Thanxx a lot everyone, this WinFBX just blew my mind
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: Theo Gottwald on August 24, 2019, 05:53:34 PM
Quote from: José Roca on July 27, 2018, 04:11:32 AM
Examples and templates are available if you install the WinFBE editor.

They are also available separately in my GitHub repository:
https://github.com/JoseRoca/WinFBX

On-line help for the WinFBX framework:
http://www.jose.it-berater.org/WinFBX/WinFBX.html

The WinFBX framework provides almost all the PowerBasic functionality missing in FreeBasic and much more. Everything compiles in both 32 and 64 bit without any changes and everything is unicode aware.



The first Link seems not to work anymore?
Title: Re: Any more alterntive 64bits compiler to native codes?
Post by: José Roca on August 24, 2019, 11:30:29 PM
The first link is working. I have modified the 2nd link.