Search found 1136 matches

by SARG
Oct 21, 2020 15:52
Forum: General
Topic: compiling -g -gen gcc 32-bit dll Error: can't resolve `.drectve'
Replies: 5
Views: 119

Re: compiling -g -gen gcc 32-bit dll Error: can't resolve `.drectve'

Even if I'm funny :-) I give you a workaround, a bit cumbersome but should work. Just move Letext0: outside the .section drctve Letext0: <----------------------------------- to here ---------------------- /APP .section .drectve .ascii " -export:\"PLUG_ERROR@0\"" .ascii " -ex...
by SARG
Oct 21, 2020 11:25
Forum: General
Topic: compiling -g -gen gcc 32-bit dll Error: can't resolve `.drectve'
Replies: 5
Views: 119

Re: compiling -g -gen gcc 32-bit dll Error: can't resolve `.drectve'

Try removing the -g option.
And don't ask me why I don't know. :-)
by SARG
Oct 21, 2020 8:58
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 21
Views: 413

Re: Execution timing of a Sub launched as a thread

@Roland, On Windows, threadcreate calls the Windows API createthread setting the creation flags (see below) null so no direct way. I guess that FreePascal uses the boolean parameter to set the flag. "Creation flags that control the creation of the thread. If the CREATE_SUSPENDED flag is specifi...
by SARG
Oct 20, 2020 14:23
Forum: General
Topic: ASM query
Replies: 14
Views: 212

Re: ASM query

To summarize (with gcc/as provided with fbc, not masm :-) ) GCC32 1=2=3 1/ asm mov dword ptr [num+4], eax --> mov dword ptr [QWORD PTR [ebp-64]+4], eax 2/ asm mov dword ptr num[4], eax --> mov dword ptr QWORD PTR [ebp-64][4], eax 3/ asm mov dword ptr 4[num], eax --> mov dword ptr 4[QWORD PTR [ebp-64...
by SARG
Oct 20, 2020 12:01
Forum: General
Topic: ASM query
Replies: 14
Views: 212

Re: ASM query

'num[4]' can be compiled if num is shared but in this case the result should be wrong.

[num+4] = 4[num] good

num[4] wrong

[num]4 won't compile
by SARG
Oct 20, 2020 11:31
Forum: General
Topic: ASM query
Replies: 14
Views: 212

Re: ASM query

deltarho[1859] wrote:mov Dwrd Ptr num[4], eax

You want to say '4[num] ' as 'num[4]' can't be compiled.
by SARG
Oct 20, 2020 11:05
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 21
Views: 413

Re: Execution timing of a Sub launched as a thread

So it looks like Thread() may start before Threadcreate() returns. Sure it was not guaranteed as the 2 threads run simultaneously so it depends of various factors : processor multicore/multithreaded, processor very busy, how all other threads are handled. However better have a proof of that. Thanks...
by SARG
Oct 19, 2020 23:55
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 21
Views: 413

Re: Execution timing of a Sub launched as a thread

I would say not guaranteed.
On Windows the thread runs immediately after creation therefore before the return of Threadcreate(). So the retrieving of ptid could be random.

You could add something like that

Code: Select all

while ptid=0
   sleep 100 ''or smaller value
   ptid = *Cast(Any Ptr Ptr, p)
wend
by SARG
Oct 18, 2020 19:30
Forum: Linux
Topic: Errors in asm: invalid use of register, bad expression...
Replies: 6
Views: 140

Re: Errors in asm: invalid use of register, bad expression...

Roland Chastain wrote:Yes, it solves the problem. Thank you.
You're welcome.

A hint in such case : compile with -RR (or R) so you can see the faulty asm line using the line number given by the assembler.
by SARG
Oct 18, 2020 19:02
Forum: Linux
Topic: Errors in asm: invalid use of register, bad expression...
Replies: 6
Views: 140

Re: Errors in asm: invalid use of register, bad expression...

Hi Roland,

Change OFFSET by OFSET (or other name). That's all.
by SARG
Oct 13, 2020 13:09
Forum: General
Topic: Runtime error 12 when I try to quit my prog
Replies: 7
Views: 180

Re: Runtime error 12 when I try to quit my prog

debug [at] aliceadsl .fr (no space......)
by SARG
Oct 13, 2020 12:32
Forum: Community Discussion
Topic: Where can I get a Recent-Git-Build of FreeBASIC?
Replies: 481
Views: 80185

Re: Where can I get a Recent-Git-Build of FreeBASIC?

@St_W
Sorry for the inconvenience.
I have proposed to Jeff another fix to solve the problem as the result of the current one is not efficient : whatever the cpu is no use of some 'new' functionnalities
by SARG
Oct 13, 2020 12:11
Forum: General
Topic: Runtime error 12 when I try to quit my prog
Replies: 7
Views: 180

Re: Runtime error 12 when I try to quit my prog

Hi Itomi,

Is your code downloadable ? I could have a look for finding the reason of the crash.
by SARG
Oct 08, 2020 17:20
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 382
Views: 40786

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

Jeff and I are working to add gas64 into at least fbc 1.08 and maybe also in 1.07.2. SARG, you are too generous. You know you did like 99.9% of the work on this. :) I just wanted to say that it's well planned to integrate gas64 in FBC. And as this integration is mostly your job it's the truth. :-) ...
by SARG
Oct 07, 2020 19:16
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 382
Views: 40786

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

Thank you all for your kind support. @provoni pros - easy use, same than gas32 no gcc necessary : only assembler and linker. - compilation speed - speed of exes at least same/better than default gcc - debugging data following really the basic code (lines, arrays,..) not the case with gcc - More for ...

Go to advanced search