Search found 2291 matches

by srvaldez
May 04, 2020 13:59
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 526

Re: Could I use fbc -gen gcc with clang as the compiler?

thanks TeeEmCee
an interesting experiment, in 32-bit I had to pass -asm att to fbc otherwise clang would spit-out many errors related to fpu operand size not being specified.
it would be interesting to have FB built using clang.
by srvaldez
May 04, 2020 12:12
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 526

Re: Could I use fbc -gen gcc with clang as the compiler?

TeeEmCee wrote:Edit: Figured out a way to simplify compiling.

please elaborate
by srvaldez
May 03, 2020 20:36
Forum: Community Discussion
Topic: GCC compiler question
Replies: 10
Views: 380

Re: GCC compiler question

the gcc toolchain provided by equation are statically linked, only standard Windows dll dependencies like msvcrt.dll or user32.dll
I don't know about compiler internals, obviously FB and gcc use certain directory structures to function.
by srvaldez
May 03, 2020 20:06
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 526

Re: Could I use fbc -gen gcc with clang as the compiler?

well then, why don't you give it try? use the -R, -gen gcc and -v options on the fbc command to get the C source and the compile, assemble and link commands though I doubt it would work, gcc and clang don't support the same compiler options not to mention that the FB runtime lib's are probably incom...
by srvaldez
May 03, 2020 19:55
Forum: Community Discussion
Topic: GCC compiler question
Replies: 10
Views: 380

Re: GCC compiler question

Too cubersome. What if I could compile FreeBASIC from source on environments like Cygwin or MSYS2? you can build it with msys2 no problems, although I prefer to use a different gcc toolchain than what msys2 provides due to the dll dependencies but you can use the msys2 shell using a different gcc t...
by srvaldez
May 03, 2020 18:48
Forum: Community Discussion
Topic: GCC compiler question
Replies: 10
Views: 380

Re: GCC compiler question

@TT
you copy libexec to FreeBASIC-1.07.1-win32-gcc-8.1.0/bin and copy the gcc.exe that's in win32 to FreeBASIC-1.07.1-win32-gcc-8.1.0/bin/win32
by srvaldez
May 03, 2020 11:49
Forum: Community Discussion
Topic: GCC compiler question
Replies: 10
Views: 380

Re: GCC compiler question

@UEZ from my experience, different mingw-gcc tool-chains have different dependencies for the gcc and binutils like as, ld and ar you would need to include those dependency DLL's also, unless you use fbc that's integrated in the mingw toolchain also, msys2 has a different directory structure, instead...
by srvaldez
May 03, 2020 11:30
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 526

Re: Could I use fbc -gen gcc with clang as the compiler?

if your OS is Linux, then install clang if not already installed, then instead of -gen gcc use -gen llvm but a lot of programs will fail to compile on Windows you could do the same if you use the msys2 toolchain, you would need to install clang pacman -S mingw-w64-i686-clang pacman -S mingw-w64-x86_...
by srvaldez
May 01, 2020 16:18
Forum: Tips and Tricks
Topic: fast sine and fast cosine
Replies: 14
Views: 442

Re: fast sine and fast cosine

Hi dodicat
you exceeded the range of the asm implementations, the max for lim is about 1000000, and the precision is only about 2 or 3 digits
by srvaldez
May 01, 2020 3:35
Forum: Libraries
Topic: gsl-2.5 win64
Replies: 0
Views: 105

gsl-2.5 win64

by srvaldez
Apr 30, 2020 22:29
Forum: Windows
Topic: FreeBASIC-1.08.0-winxx-gcc-10-20200502
Replies: 5
Views: 332

FreeBASIC-1.08.0-winxx-gcc-10-20200502

just for fun, FB-1.08 built with the latest work-in-progress gcc-10
FreeBASIC-1.08.0-win32-gcc-10.7z
FreeBASIC-1.08.0-win64-gcc-10.7z
by srvaldez
Apr 30, 2020 20:54
Forum: Tips and Tricks
Topic: fast sine and fast cosine
Replies: 14
Views: 442

Re: fast sine and fast cosine

@UEZ I modified your sine and cosine to naked functions, there may be a small speed increase but what's more important is that it compiles without complaint whereas your originals failed to compile with gcc-10 and with -Ofast Function _ASM_Sin6th naked cdecl(byval fX As Double) As Double 'By Eukalyp...
by srvaldez
Apr 30, 2020 11:54
Forum: Tips and Tricks
Topic: fast sine and fast cosine
Replies: 14
Views: 442

Re: fast sine and fast cosine

Hi jj2007 please try with the following compile command: fbc -gen gcc -Wc -O2 the times on my PC using that command are 32-bit _ASM_Sin6th time: seconds = 1.452 sum = 29.1971 true 1.713649346570576 _ASM_Cos6th time: seconds = 1.463 sum = 9.3472 true 0.1709843554183985 ------------------------ fast_s...
by srvaldez
Apr 29, 2020 19:10
Forum: Tips and Tricks
Topic: fast sine and fast cosine
Replies: 14
Views: 442

Re: fast sine and fast cosine

@caseih
it din't fare too well

Code: Select all

gsl_sf_sin time: seconds =  5.952  sum =  1.713649346570745 true 1.713649346570576
gsl_sf_cos time: seconds =  5.896  sum =  0.170984355417845 true 0.1709843554183985
by srvaldez
Apr 29, 2020 16:11
Forum: Tips and Tricks
Topic: fast sine and fast cosine
Replies: 14
Views: 442

Re: fast sine and fast cosine

@UEZ obviously the Intel and AMD CPU's perform differently, here are my times FBx64 using fbc -arch native -asm intel -gen gcc -Wc -Ofast thank you for testing _ASM_Sin6th time: seconds = 0.3319944000104442 29.19713395039345 true 1.713649346570576 _ASM_Cos6th time: seconds = 0.3561769000079949 9.347...

Go to advanced search