Search found 1261 matches

by SARG
Jul 23, 2021 12:24
Forum: General
Topic: Poke Modifying Previous Address' Value
Replies: 24
Views: 493

Re: Poke Modifying Previous Address' Value

No bug. 'Deallocate' says to the sytem this memory is free but don't set the pointer as null. 'New' asks the system a piece of memory, in your case by chance the previous one is given. So the 2 pointers point to the same memory space. To avoid potential problems some recommend to set the pointer to ...
by SARG
Jul 19, 2021 9:06
Forum: Documentation
Topic: Compiler Option: -entry
Replies: 8
Views: 124

Re: Compiler Option: -entry

It seems to replace main() so a sub_name, to be confirmed.

edit : rather a function_name....
by SARG
Jul 19, 2021 8:37
Forum: Documentation
Topic: Compiler Option: -entry
Replies: 8
Views: 124

Re: Compiler Option: -entry

Map files : plain text files that indicate the relative offsets of functions/variables of a compiled binary.
Entry point : it's a point in a program where the execution of a program begins, and where the program has access to command line arguments.
by SARG
Jun 15, 2021 16:33
Forum: Beginners
Topic: Distortion when moving across the screen sprite (Raspberry 4B))
Replies: 67
Views: 1494

Re: Distortion when moving across the screen sprite (Raspberry 4B))

PavelUT wrote:[img]I can not insert a picture
[/img]

You have to upload the image somewhere and then put the link between the tags.
by SARG
Jun 15, 2021 9:09
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 73
Views: 4059

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

@ D.J.Peters
I checked, fbextra.x is the same in St_W's builds for 32bit and 64bit, it seems you didn't copy all the folder.
About the extension name I guess it's like that since the beginning.
by SARG
Jun 14, 2021 20:48
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 73
Views: 4059

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Check if fbextra.x (in lib) is like that (the last line) :

Code: Select all

SECTIONS
{
  /DISCARD/ :
  {
    *(.fbctinf)
  }
}
INSERT AFTER .data;
by SARG
Jun 14, 2021 19:40
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 73
Views: 4059

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

I get a similar message (obvioulsy in french) when I recompile the master sources (1.09) with the current fbc 1.08 and I use the new compiler on a test program. Maybe something wrong with the linker change (-T script file). I compared the asm files (1.08 / 1.09) they are exactly the sames. I'm using...
by SARG
Jun 13, 2021 10:10
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 686
Views: 197152

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

visualfreebasic5 wrote:Now 2K 4K display, DPI = 125% to 200%, can version 3.0 support high DPI?
No DPI support.
You can list many reasons but no planned changes.....

visualfreebasic5 wrote:Is version 3.0 expected to be completed this year?
Before the end of month, at least for Windows version.
by SARG
Jun 12, 2021 7:20
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 686
Views: 197152

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

visualfreebasic5 wrote:Fbdebugger will create 1000 RichEdit, can it be optimized? Use only one RichEdit or scintilla
The next version (3.00) uses only one Scintilla window. :-)
by SARG
Jun 11, 2021 20:22
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 686
Views: 197152

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

This debugging software is very good. I know :-) thanks. But next time FB_debugger is updated, I have to remake it as VFB source code, Your problem not mine. However the GUI part is very very rarely changed. do you consider that FB_debugger will be written by VisualFreeBasic IDE in the future? No I...
by SARG
May 21, 2021 15:51
Forum: General
Topic: Naked return value
Replies: 11
Views: 431

Re: Naked return value

jj2007 wrote:Codesize-wise, it's identical:
I agree.
I compared only foo2 functions :-)


@deltarho[1859]
XMM for returning doubles and singles on Windows and Linux.
by SARG
May 21, 2021 13:38
Forum: General
Topic: Naked return value
Replies: 11
Views: 431

Re: Naked return value

With 64bit it's shorter.

Code: Select all

Function foo2 Naked ( ByVal x As Ulong ) As double
  Asm
   cvtsi2sd xmm0, ecx
   ret
  End Asm
End Function
print foo2(57897897)
sleep
by SARG
May 20, 2021 13:34
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 686
Views: 197152

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

@Xusinboy, I did some tests compiling fbdebugger and your code with -gen gas64 but with my own version 1.07.2 --> no problem. In 1.07.3 there are not the modifications for gas64 I did since november... So probably I fixed the issue earlier. I tested also with 1.08 from daily build by St_W ---> no pr...
by SARG
May 18, 2021 18:34
Forum: Windows
Topic: Console Clear issue
Replies: 6
Views: 375

Re: Console Clear issue

Just an idea : try with less characters : dwConSize=25*80 or even less 100.

Go to advanced search