Search found 1158 matches

by SARG
Dec 02, 2020 16:31
Forum: Projects
Topic: Profiling (with gas64)
Replies: 0
Views: 44

Profiling (with gas64)

Profiling allows to know how much CPU time is used by every procedure for eventually choose where optimize. It's experimental. Give me your opinion. Use : - compile your code as usually with the provided exe. Just add the option -profile (don't forget -gen gas64). http://users.freebasic-portal.de/sa...
by SARG
Nov 30, 2020 14:17
Forum: Documentation
Topic: Wiki improvements
Replies: 555
Views: 99482

Re: Wiki improvements

I read also this but it's more like an example for finding an explicit name.
by SARG
Nov 30, 2020 14:07
Forum: Documentation
Topic: Wiki improvements
Replies: 555
Views: 99482

Re: Wiki improvements

GetCurrentThread Windows's API :-)

"handle" thanks
by SARG
Nov 30, 2020 13:58
Forum: Documentation
Topic: Wiki improvements
Replies: 555
Views: 99482

Re: Wiki improvements

The meaning of ThreadSelf is not obvious, at least for me.
ThreadGetHandle() (a bit long) or ThreadHandle() seem clearer.

And keep "handle" everywhere as it's its purpose.
by SARG
Nov 23, 2020 23:45
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 393
Views: 43348

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

Hi robert, I don't use makefiles so my answer is what I understand after looking them. For fbc preferably use ALLFBCFLAGS += -gen gas64 As FBFLAGS is also used for linking. You could add -R and if you see a64 files the compiler uses gas64. For the tests use the option 'GEN' with makefile for selecti...
by SARG
Nov 20, 2020 20:36
Forum: General
Topic: Crash in recursion
Replies: 3
Views: 141

Re: Crash in recursion

Hi UEZ,

Put this line like before the test

Code: Select all

print cos(x) , Sin(y - n / 2): Flip  :sleep 010

You will see values reaching limits --> undefined.
I guess (no time to go deeper) that the order of the values for the test is important.
by SARG
Nov 20, 2020 0:23
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 393
Views: 43348

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

Hi all, A new version with a lot of internal changes. Don't forget to set the option -gen gas64 when using fbc The file contains the exes for WDS 1.07 / 1.08 and only the modifications for 1.07 not yet in github. http://users.freebasic-portal.de/sarg/fbc64_gas64_W.zip For 1.08 the sources (github fb...
by SARG
Nov 12, 2020 14:53
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 649
Views: 169325

Re: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)

Hi TT,
Thanks twice.

First page updated with the missing link.

If you deal with arrays the WIP version (only 32bit exe) is even better. See the post above.
http://users.freebasic-portal.de/sarg/F ... _EXE32.zip

I still have to work a bit for a full version.
by SARG
Nov 10, 2020 17:30
Forum: General
Topic: Strange error reporting with threadcall
Replies: 10
Views: 372

Re: Strange error reporting with threadcall

This is just a quirk compared to the more important fact that ThreadCall is currently not safe, and therefore is currently strongly discouraged for use (see documentation): WARNING: Presently when Threadcall involves to pass parameters to the thread, there is no guarantee that the corresponding dat...
by SARG
Nov 10, 2020 16:53
Forum: General
Topic: Strange error reporting with threadcall
Replies: 10
Views: 372

Re: Strange error reporting with threadcall

Well, the only 'alowed' procedure type for a thread is a SUB, according to the docs. (the only alowed parameter is a Any Ptr, to further complicate matters) I know that and I knew that someone will do this remark :-) Therefore, I fail to see what you call 'strange'. What is strange : uncommenting t...
by SARG
Nov 10, 2020 16:32
Forum: General
Topic: Strange error reporting with threadcall
Replies: 10
Views: 372

Strange error reporting with threadcall

function procf()as any ptr return @procf end function 'sub procs() ''<-------- Uncomment the 2 lines 'end sub dim as integer ptr aaa aaa=threadcall procf aaa=threadcall procf With commented sub procs lines --> 2 error messages FbTemp.bas(9) error 289: Expected sub, found 'procf' in 'aaa=threadcall ...
by SARG
Nov 10, 2020 14:08
Forum: General
Topic: LongInt on 32 bit architecture
Replies: 15
Views: 488

Re: LongInt on 32 bit architecture

Strangely enough, Google refuses to give me the x86 ABI - but I'm pretty sure that xmm0 ... xmm3 are volatile registers Agner Fog's manuals are a great source of information. https://www.agner.org/optimize/calling_conventions.pdf Chapter 6 page 10 : register usage Don't forget Linux and Windows ABI...
by SARG
Nov 08, 2020 22:47
Forum: General
Topic: LongInt on 32 bit architecture
Replies: 15
Views: 488

Re: LongInt on 32 bit architecture

bcohio2001 wrote:Looked into GMP, although the library is not included,

Maybe you have already found the library.
Otherwise there is a topic where srvaldez posted a link to download it. viewtopic.php?f=3&t=24110

@jj2007 Thanks. :-)
by SARG
Nov 08, 2020 9:32
Forum: General
Topic: LongInt on 32 bit architecture
Replies: 15
Views: 488

Re: LongInt on 32 bit architecture

@jj2007 I was just replying to OP. That how it's handled in 32bit version. No judgment all roads lead to Rome. Honestly, I don't understand why FB would need one virtual register or two real registers to do that; it can't be efficient About virtual registers remember that the compilation is not done...
by SARG
Nov 07, 2020 20:36
Forum: General
Topic: LongInt on 32 bit architecture
Replies: 15
Views: 488

Re: LongInt on 32 bit architecture

I thought that if a 32 bit system could handle a 64 bit number, then why couldn't a 64 bit system handle a 128 bit integer! There is no problem it's just manipulate data. You could even have 1024 or more bits. A small issue : you need to use a library like GMP to all the calculations (+,-, etc) or ...

Go to advanced search