Search found 3338 matches

by srvaldez
Mar 11, 2024 15:49
Forum: General
Topic: -gen clang
Replies: 64
Views: 3243

Re: -gen clang

the following gives asm errors if compiled without -asm att

Code: Select all

dim as double pi=3.1415926535897932
dim as long i

i=int(pi)
? i
the problem is with i=int(pi)
by srvaldez
Mar 11, 2024 15:46
Forum: General
Topic: -gen clang
Replies: 64
Views: 3243

Re: -gen clang

you can get it from https://u.pcloud.link/publink/show?code ... h6yXwC0uu7
the toolchain is from https://winlibs.com/ GCC 13.2.0 (with POSIX threads) + LLVM/Clang/LLD/LLDB 18.1.1 + MinGW-w64 11.0.1 (MSVCRT) - release 6 (LATEST)
by srvaldez
Mar 11, 2024 14:59
Forum: General
Topic: -gen clang
Replies: 64
Views: 3243

Re: -gen clang

the following program compiles ok in 32-bit without -asm att the matrix multiplication is from the Rosetta code, but the demo is mine, it shows how drastically the precision is lost type Matrix dim as double m( any , any ) declare constructor ( ) declare constructor ( byval x as uinteger , byval y a...
by srvaldez
Mar 11, 2024 14:47
Forum: General
Topic: -gen clang
Replies: 64
Views: 3243

Re: -gen clang

in 32-bit with -gen clang the following will give the error error: unsupported relocation type push offset L_.str

Code: Select all

print "Hello World"
compiles ok if you use -asm att
but in my larger test program there were many asm errors not related to strings
by srvaldez
Mar 11, 2024 14:27
Forum: General
Topic: -gen clang
Replies: 64
Views: 3243

Re: -gen clang

about the -asm att option, I tried other small programs and they compile ok without that option, it's a mystery why that option is required for this particular program, there are no inline asm statements used
by srvaldez
Mar 11, 2024 13:28
Forum: General
Topic: -gen clang
Replies: 64
Views: 3243

-gen clang

out of curiosity I tried compiling with -gen clang, other than -gen clang no other options are needed for 64-bit but for 32-bit you must also use -asm att I wanted my FB package to only have the needed extra files for clang, so I set geany to compile for 64-bit with -gen clang, and after adding clan...
by srvaldez
Mar 05, 2024 18:57
Forum: Sources, Examples, Tips and Tricks
Topic: CORDIC - Rosetta Code
Replies: 0
Views: 189

CORDIC - Rosetta Code

the FreeBASIC translation of the Julia code is wrong https://rosettacode.org/wiki/CORDIC#FreeBASIC in Julia the variable v looks like a vector, v = [1, 0] # start with 2-vector cosine and sine of zero and in the call to the cordic function cosθ, sinθ = cordic(θr) cosθ and sinθ should have the respec...
by srvaldez
Mar 04, 2024 19:48
Forum: Windows
Topic: QuickLook -- a document previewer
Replies: 0
Views: 127

QuickLook -- a document previewer

on MacOS it's a standard feature to be able to preview all kinds of files by simply selecting the file and then pressing the space bar, but it's not a standard feature on Windows, but today I found a program that does just that, QuickLook. after launching QuickLook it keeps running in the background...
by srvaldez
Mar 01, 2024 20:09
Forum: General
Topic: [solved]Help with UDT and cptr
Replies: 4
Views: 291

Re: Help with UDT and cptr

you need to use parenthesis

Code: Select all

function works( p as byte ptr) as ulongint
    return (*cptr(UDT ptr, p)).b
end function
by srvaldez
Feb 17, 2024 19:14
Forum: Sources, Examples, Tips and Tricks
Topic: "Lite regulation" function ('regulateLite()') to be integrated into user loop for FPS control
Replies: 25
Views: 4580

Re: "Lite regulation" function ('regulateLite()') to be integrated into user loop for FPS control

fxm, I think that it would be good to have it in the manual, this thread may get buried and hard to find
by srvaldez
Feb 15, 2024 14:21
Forum: Community Discussion
Topic: A question about building fbc from source
Replies: 2
Views: 328

Re: A question about building fbc from source

hello cuthbertdavies :)
you could edit the makefile line 174, don't know if there's a way to do it from the command line
by srvaldez
Feb 13, 2024 23:20
Forum: Beginners
Topic: Abnormal crash while writing a null pointer.
Replies: 6
Views: 359

Re: Abnormal crash while writing a null pointer.

hello xX_Pokeman2003_Xx I get this warnings, I thinks that it explain the problem code.c: In function 'main': code.c:37:94: warning: '__builtin_memset' writing 256 bytes into a region of size 32 [-Wstringop-overflow=] 37 | *(char**)((uint8*)POINTERS$0 + ((int64)I$1 << (3ll & 63ll))) = (char*)0ul...
by srvaldez
Feb 13, 2024 23:10
Forum: Libraries & Headers
Topic: ezySVG Lib for Freebasic - make SVG files
Replies: 5
Views: 419

Re: ezySVG Lib for Freebasic - make SVG files

hello Tonigau :) a couple of errors in ezySVG.bi in functions SVG_Polygon and SVG_PolyLine the array PolyBB is an array of Long but in the function SVG_GetPolyMid it's an array of integer in TestSVG_1.bas line 202 you have SVG_Image(550, 280, 150, 200, "xMidyMid", FilePath +FileName, 0) bu...
by srvaldez
Feb 13, 2024 22:06
Forum: Libraries & Headers
Topic: ezySVG Lib for Freebasic - make SVG files
Replies: 5
Views: 419

Re: ezySVG Lib for Freebasic - make SVG files

very impressive!
thanks for sharing 👍😁
by srvaldez
Feb 11, 2024 18:29
Forum: General
Topic: a question for SARG
Replies: 7
Views: 313

Re: a question for SARG

SARG
yes!, that silenced the warnings
now it builds without a single warning 👍😁