Gas64 (no more use of gcc, only gas) WDS / LNX

User projects written in or related to FreeBASIC.
Provoni
Posts: 386
Joined: Jan 05, 2014 12:33
Location: Belgium

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Postby Provoni » Oct 09, 2020 14:18

jj2007 wrote:
Provoni wrote:now it was done in about 20 seconds. Great work! Though my program runs 1.6x faster with GCC
Develop it with SARG's compiler, release it compiled with GCC. My 20,000 line programs "compile" in less than 2 seconds, but that is Assembler ;-)

Yep indeed, good idea, I have it set up.
coderJeff
Site Admin
Posts: 3308
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Postby coderJeff » Oct 12, 2020 0:01

gas64 is now merged in to 1.07.2 (on freebasic/fbc/fbc-1.07 branch) and 1.08.0 (on freebasic/fbc/master branch).

- '-gen gas64' to use
- intrinsic '__FB_BACKEND__' set to "gas64" when used
- default backend is still -gen gas on 32-bit and -gen gcc on 64-bit

A while back discussed using -gen gas and __FB_BACKEND__ = "gas" for both 32-bit and 64-bit. Going to leave the behaviour as-is for now, but, If you did want to write conditional source code for either now or future:

Code: Select all

#if ( __FB_BACKEND__ = "gas") or (__FB_BACKEND__ = "gas64")
  #if defined( __FB_64BIT__ )
    '' asm for 64-bit
  #else
    '' asm for 32-bit
  #endif
#else
  '' generic code for any other backend
#endif
deltarho[1859]
Posts: 2603
Joined: Jan 02, 2017 0:34
Location: UK

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Postby deltarho[1859] » Oct 12, 2020 4:47

Excuse my ignorance but where is 'freebasic/fbc/fbc-1.07 branch'?
Provoni
Posts: 386
Joined: Jan 05, 2014 12:33
Location: Belgium

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Postby Provoni » Oct 12, 2020 5:07

deltarho[1859] wrote:Excuse my ignorance but where is 'freebasic/fbc/fbc-1.07 branch'?

I don't know either.
deltarho[1859]
Posts: 2603
Joined: Jan 02, 2017 0:34
Location: UK

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Postby deltarho[1859] » Oct 12, 2020 5:22

Provoni wrote:I don't know either.

Oh, thank you - I can take my dunce cap off now. Yes, I have one. I would like to say it gathers dust most of the time but I can't. Image
coderJeff
Site Admin
Posts: 3308
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Postby coderJeff » Oct 12, 2020 5:55

deltarho[1859] wrote:Excuse my ignorance but where is 'freebasic/fbc/fbc-1.07 branch'?


Maybe easiest place to see would be:
https://github.com/freebasic/fbc/branches

The fbc-1.07 branch will be used for a 1,07.2 version release. It's diverged from the main development branch.
deltarho[1859]
Posts: 2603
Joined: Jan 02, 2017 0:34
Location: UK

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Postby deltarho[1859] » Oct 12, 2020 7:10

Thanks coderJeff - I will wait for a .2 release. I went to the link and put my dunce cap back on. Image

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 5 guests