Search found 1227 matches

by SARG
Feb 08, 2021 0:19
Forum: Community Discussion
Topic: when tools that you trust go wrong
Replies: 21
Views: 690

Re: when tools that you trust go wrong

Hi srvaldez, Using ld from 2.36 you provided, thanks, I was able to reproduce the problem with my snippet. And I found nothing in the options (ld --help) for changing that behaviour. After several tries and comparing the asm generated by gcc the problem was caused by : asm_code("jmp QWORD PTR [...
by SARG
Feb 07, 2021 19:05
Forum: Community Discussion
Topic: when tools that you trust go wrong
Replies: 21
Views: 690

Re: when tools that you trust go wrong

@SARG there's no option -no-pie for ld, but it's available in gcc, at least gcc doesn't complain about it Are you sure ? https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html what results should I expect? I want to see if you get also the error with the snippet on 8.30. And no error if -no-pie is us...
by SARG
Feb 07, 2021 16:48
Forum: Community Discussion
Topic: when tools that you trust go wrong
Replies: 21
Views: 690

Re: when tools that you trust go wrong

srvaldez wrote:I give up
Don't give up so quickly :-)

Just try that with/without -no-pie for the linker. And I promise not to ask more.

Code: Select all

dim as integer aaa
select case as const aaa
   case 1
      print "1"
   case 2
      print "2"
end select
by SARG
Feb 07, 2021 13:06
Forum: Community Discussion
Topic: when tools that you trust go wrong
Replies: 21
Views: 690

Re: when tools that you trust go wrong

@jj2007 Thanks for the tip. @srvaldez Maybe the default is position-independent with 2.36. This will be confirmed (unless i'm wrong) by adding -no-pie for linking when running the test suite. edit : Using select as const there is a jump table with non independent addresses which could explain the er...
by SARG
Feb 07, 2021 10:05
Forum: Community Discussion
Topic: when tools that you trust go wrong
Replies: 21
Views: 690

Re: when tools that you trust go wrong

@srvaldez Could you give details about your environment and tools used. @jj2007 You are right. I have just discovered 'offset' with the srvaldez's post. So removing [rip] it's working fine when compiled with gas64. sub foo() end sub dim as integer adr asm lea rax, foo[rip] mov [adr], rax end asm pri...
by SARG
Feb 05, 2021 22:38
Forum: Community Discussion
Topic: Sound (description)
Replies: 14
Views: 504

Re: Sound (description)

badidea wrote:I don't think that documentation is the problem. If the sound library is included in the builds, the documentation will be there soon as well.
If it's in the help file beginners (or others) will find easily that feature. At least a hint where find the sound library and its possibilities.
by SARG
Feb 05, 2021 22:17
Forum: Community Discussion
Topic: when tools that you trust go wrong
Replies: 21
Views: 690

Re: when tools that you trust go wrong

f1address is local so its address is an offset linked to rbp.
Try

Code: Select all

lea rax, quirk_inline_asm_f1[rip] 

or which is equivalent

Code: Select all

 mov rax, offset quirk_inline_asm_f1[rip] 
by SARG
Feb 05, 2021 17:54
Forum: Community Discussion
Topic: Sound (description)
Replies: 14
Views: 504

Re: Sound (description)

I agree with VANYA a light library for sounds would be nice. I gueess that the readme.txt of the angros47's sfx with some examples for the most current uses will be enough. So if angros47 could do that fxm has just to create a new page in the Wiki based on the txt file. And it will remain to add the...
by SARG
Feb 03, 2021 11:51
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 676
Views: 181665

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

And I also forgot to write: If you download the source code to the debugger in UTF-16LE, then it is not displayed. Try that and tell me. (only an exe for 32bit) https://users.freebasic-portal.de/sarg/FBdebugger_32_unicode.zip I coded a snippet for creating this 2 lines in UTF16-LE format and when d...
by SARG
Feb 02, 2021 20:05
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 676
Views: 181665

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

GUI with Window9 I don't think this is a good idea. I already wrote in the last post (edited after your post, but too late). Speed ​​is very important to the debugger, and my library will still eat up time on built-in event mechanisms. Window9 is suitable for programs that are not so speed critical...
by SARG
Feb 02, 2021 17:30
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 676
Views: 181665

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

Thanks SARG, helped a lot. Now I can debug large programs in FBDEBUGGER. Nice to read. SARG! I always used Run Stopped by Halt , And rarely used fast run . The only difference between them is that one works up to the exception, and the other up to the required line? Do I understand correctly? With ...
by SARG
Feb 02, 2021 11:33
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 676
Views: 181665

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

IMPORTANT: I'll upload a new version for all the exes : there is a missing comment statement in fbdebugger source so loading of big debuggees is very long and any execution too. Edit : not very long but a bit longer... Anyway I have to push new exes. Done : https://users.freebasic-portal.de/sarg/fb...
by SARG
Feb 01, 2021 16:25
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 676
Views: 181665

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

IMPORTANT: I'll upload a new version for all the exes : there is a missing comment statement in fbdebugger source so loading of big debuggees is very long and any execution too.

Edit : not very long but a bit longer... Anyway I have to push new exes.
by SARG
Feb 01, 2021 16:03
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 676
Views: 181665

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

I hope SARG understands what I am talking about and does not think that I am crazy :) Nobody is crazy. Sometimes things are hard to explain and therefore hard to understand. I have just to reproduce the case for better understanding. My first thought : RUN doesn't update the values in proc/var unti...
by SARG
Jan 31, 2021 11:39
Forum: Projects
Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Replies: 676
Views: 181665

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

VANYA wrote:It would be nice if such an option was in fbdebugger. When large and demanding programs, then disable all updates of values ​​in the GUI.
????? This option has been just added so I don't understand :-) Reread my post.

Go to advanced search