Search found 1227 matches

by SARG
Mar 01, 2021 12:17
Forum: Beginners
Topic: Integer data types in 32-bit and 64-bit
Replies: 20
Views: 437

Re: Integer data types in 32-bit and 64-bit

Hi dodicat, It doesn't fail with a variable. yes because it's not handled in a same way : the arrays are created dynamically in the heap by executing code (fb_ArrayRedimEx). Only the structure of the arrays is in data section. STACK fixed size | V ------------- ------------- ^ | HEAP no fixed size b...
by SARG
Mar 01, 2021 11:14
Forum: Beginners
Topic: FBEdit internal Debugger with Command line program
Replies: 8
Views: 233

Re: FBEdit internal Debugger with Command line program

I just tested. In settings DBG box : param11 param22 Using this code from documentation : print "program launched via: " & Command(0) Dim As Integer i = 1 Do Dim As String arg = Command(i) If Len(arg) = 0 Then Exit Do End If Print "command line argument " & i & "...
by SARG
Mar 01, 2021 10:54
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 401
Views: 50235

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

You are doing fantastic work, SARG. And I am sure you want to beat that bloody gcc compiler ;-) Thanks, fortunately you understood my joke ;-) My purpose is more to have the possibility to debug efficiently therefore gcc with O2 and gas64 are not competiting in the same class. However by doing a se...
by SARG
Mar 01, 2021 9:53
Forum: Beginners
Topic: Integer data types in 32-bit and 64-bit
Replies: 20
Views: 437

Re: Integer data types in 32-bit and 64-bit

It fails also with gcc64 if you don't use -O2. With optimization no room is reserved in bss section as the variables not used are removed. And it works with gas32 because as integer is 4 bytes so the total size of .bss doesn't exceed a limit..... If you change integer by longint --> same problem. Th...
by SARG
Feb 28, 2021 22:48
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 401
Views: 50235

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

161 ms time for what ?
by SARG
Feb 28, 2021 18:30
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 401
Views: 50235

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

@jj2007 What do you want to prove ? that an alone guy in 2 years does less well than a very skilled team during many years ;-) Gas64 uses one only pass I guess that with a second pass more optimizations could be made and therefore executions be speed up. I have to study the asm code generated by gcc...
by SARG
Feb 28, 2021 10:51
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 401
Views: 50235

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

jj2007 wrote:@Sarg: please check this thread, and compare against FB64
I'll do but for you what does mean FB64 ?
gas, gas64, gcc32 and gcc64 are less ambiguous.
by SARG
Feb 27, 2021 10:22
Forum: Beginners
Topic: FBEdit internal Debugger with Command line program
Replies: 8
Views: 233

Re: FBEdit internal Debugger with Command line program

@VANYA thank you for helping Tonigau.
I have to complete the manual as it's not indicated how to set command line parameters in the "How to use Fbdebugger" page.
by SARG
Feb 25, 2021 9:34
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 68
Views: 14764

Re: FreeBASIC 1.07 Release Discussion

Fixed. one minor issue : the message was for unary operator (UOP) not BOP, copy and paste with no change....... major issue : 'as const for simple datatype' was not handled when an UOP is used. I guess there will not be a 1.07.4 so you can use this (based on 1.07.2) : https://users.freebasic-portal....
by SARG
Feb 24, 2021 21:18
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 68
Views: 14764

Re: FreeBASIC 1.07 Release Discussion

I could try analysing the A64 file myself, but somebody who knows GAS64 could probably identify what is going wrong quicker. Sure I could as I'm the author ;-) You seems to get a a64 file so could you just post the lines before the error (10 should be enough). Otherwise tomorrow I'll try on my side...
by SARG
Feb 20, 2021 2:20
Forum: General
Topic: help w/ Quake fast inv sqrt
Replies: 3
Views: 141

Re: help w/ Quake fast inv sqrt

Not the square root sqr() but the inverse square root : 1/sqr().......... function q_rsqrt(x as single) as const Single '' Quake fast "inverse square root" function /' float xhalf = 0.5f*x; int i = *(int*)&x; i = 0x5f3759df - (i>>1); x = *(float*)&i; x = x*(1.5f - xhalf*x*x); '/ ''...
by SARG
Feb 16, 2021 17:05
Forum: Documentation
Topic: Basic-Macros in fbc 1.08
Replies: 59
Views: 4338

Re: Basic-Macros in fbc 1.08

From documentation about On Error : "the handler must be in the main part of the module." See the example. In the case reported as arr() is local its address is relative to ebp/rbp depending of each procedure. The jump form callerror to mainsub doesn't restore the value of ebp/rbp when it ...
by SARG
Feb 08, 2021 9:34
Forum: Beginners
Topic: String. How big is too big?
Replies: 6
Views: 177

Re: String. How big is too big?

fxm is right I just found that :

Version 0.09 Beta:
- max length of literal strings was too short, 1024 chars now (also an error msg is shown if too big) (v1c)
by SARG
Feb 08, 2021 9:06
Forum: Beginners
Topic: String. How big is too big?
Replies: 6
Views: 177

Re: String. How big is too big?

I guess it's the lenght of the line itself not the string. Splitting with underscores works. Not sure I did things rightly so do it yourself. Chaconne = "t50l32o4 fd>a<dfd>a<dfd>a<dfd>a<dfd>a<dfd>a<d fd>g<dfd>g<dfd>g<dfd>g<de>c+gc+<e>c+gc+ <dd>f<ddd>f<ddd>f<ddd>f<dda>f<ada>f<a <g>b->e<b-<g>a>f<...
by SARG
Feb 08, 2021 8:45
Forum: Beginners
Topic: String. How big is too big?
Replies: 6
Views: 177

Re: String. How big is too big?

Hi robert,
How is defined the string ?

The length can range from 0 bytes to 2 gigabytes unless you use 'Dim As String * size'.

And no chr(0).

Go to advanced search