Search found 514 matches
GCC FDO
How does one get the feedback-directed optimization (FDO) flags to work with FreeBASIC programs? The flags are: -fprofile-generate -fprofile-use The flag -fprofile-generate should be used first but it throws a bunch of errors: Program2.o:fake:(.text+0x15): undefined reference to `__gcov_indirect_cal...
- Oct 08, 2018 12:54
- Forum: Projects
- Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
- Replies: 981
- Views: 347379
Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated October 6, 2018)
Tyvm!deltarho[1859] wrote:@Provoni
'#Resource "'<filename.rc>"
@PaulSquires
The Build Listbox is misbehaving - it closes immediately on releasing the left mouse button. As a workaround, I am changing the default build to enable me to make a change.
- Oct 07, 2018 8:05
- Forum: Projects
- Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
- Replies: 981
- Views: 347379
Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated October 6, 2018)
How does one add an icon to a program?
With FbEdit I include a .rc file but this does not seem to work with WinFBE?
With FbEdit I include a .rc file but this does not seem to work with WinFBE?
- Oct 07, 2018 7:46
- Forum: Projects
- Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
- Replies: 981
- Views: 347379
Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated October 6, 2018)
Thank you PaulSquires for all your wonderful work!
- Oct 01, 2018 6:54
- Forum: Windows
- Topic: gcc 5.2 vs gcc 8.1
- Replies: 64
- Views: 10637
Re: gcc 5.2 vs gcc 8.1
Loop unrolling, higher optimization level?deltarho[1859] wrote: Am I missing something?
- Sep 30, 2018 6:25
- Forum: Windows
- Topic: gcc 5.2 vs gcc 8.1
- Replies: 64
- Views: 10637
Re: gcc 5.2 vs gcc 8.1
I am currently comparing the two and the results are a bit odd. Using 64-bit and "-s gui -gen GCC -O max -Wc -march=native,-funroll-loops,-ffast-math" with a fully multi-threaded 40.000+ lines program on a dual CPU workstation with 40 threads: 8.1 is only faster than 5.2 when all or nearly...
- Sep 28, 2018 17:42
- Forum: Windows
- Topic: gcc 5.2 vs gcc 8.1
- Replies: 64
- Views: 10637
Re: gcc 5.2 vs gcc 8.1
Thank you for these tests deltarho[1859].
- Aug 15, 2018 19:48
- Forum: Community Discussion
- Topic: Where can I get a Recent-Git-Build of FreeBASIC?
- Replies: 639
- Views: 176052
Re: Where can I get a Recent-Git-Build of FreeBASIC?
Provoni - simple change makes your rng more random Sub ShowBits32( p as any ptr, Newline As boolean = true) '' use ScreenRes w,h, 32 Dim As ulong I, AryFG(3), AryBG(3) var oldcol = color() AryFG(0) = RGB(200,200,200) AryFG(1) = RGB(255,0,0) AryFG(2) = RGB(0,255,0) AryFG(3) = RGB(0,96,255) AryBG(0) ...
- Jul 29, 2018 18:17
- Forum: General
- Topic: Prime number distribution at sight
- Replies: 11
- Views: 1707
Re: Prime number distribution at sight
A Natural Prime-Generating Recurrence: https://cs.uwaterloo.ca/journals/JIS/VOL11/Rowland/rowland21.pdf function gcd(byval a as longint,byval b as longint)as longint do while b<>0 var t=b b=a mod b a=t loop return a end function screenres 640,480,32 dim as longint p1,p2,i,j p1=7 for i=2 to 10000000 ...
- Jul 29, 2018 8:23
- Forum: Projects
- Topic: Simple WinAPI GUI library
- Replies: 72
- Views: 49187
Re: Simple WinAPI GUI library
Hey Lothar,
Thank you for the updates.
Is it possible to use/have a spacer line between menu items?
Thank you for the updates.
Is it possible to use/have a spacer line between menu items?
- Jul 29, 2018 7:56
- Forum: General
- Topic: Prime number distribution at sight
- Replies: 11
- Views: 1707
Re: Prime number distribution at sight
Prime numbers are emergent from a rule imposed on the natural numbers. I say that prime numbers come in different orders such that the lower orders are prime to the higher orders: Order 0 prime: 1 (is prime to order 1) Order 1 primes: 2, 3, 5, 7, 11, etc... (are prime to order 2) Order 2 primes: 4, ...
- Jul 19, 2018 19:17
- Forum: Community Discussion
- Topic: Compiled reality
- Replies: 20
- Views: 4272
Re: Compiled reality
In the opening post replace dim as ulongint i,j with dim as ulongint i dim shared as ulongint j and the loop is no longer optimized out. Compiled with -gen gcc -Wc -O3 Interesting! Is that because it allows scenarios in which the compiler is not able to see/determine if the shared variable is used ...
- Jul 18, 2018 14:46
- Forum: Community Discussion
- Topic: Compiled reality
- Replies: 20
- Views: 4272
Re: Compiled reality
Removing something because it has no obvious functionality is the most ridiculous type of "optimization" I've ever heard of And it especially attempts to determine the functionality in terms of the user (or the observer in quantum mechanics). But if you add a timer to time the loop it is ...
- Jul 15, 2018 15:35
- Forum: Community Discussion
- Topic: Compiled reality
- Replies: 20
- Views: 4272
Re: Compiled reality
It is a good article but there are odd dogmatic remarks such as: But I get better performance with -funroll-loops -fomg-optimize! No, people only think they do because someone has convinced them that more flags are better. Aggressive flags will only hurt applications when used system-wide. Even the ...
- Jul 15, 2018 9:04
- Forum: Community Discussion
- Topic: Compiled reality
- Replies: 20
- Views: 4272
Compiled reality
Hey all, Consider the code down below. When compiling it with GCC -O3 the program finishes instantly. However, when you comment out the "print j", the program runs for a long time. That is because at O3 the compiler decided that the for loop serves no obvious function. Though it still migh...