There goes so much into supporting each individual compiler in all its glory, that it would be a pretty time consuming task to do so. I mean, a man can dream though.
marcoagpinto wrote: ↑Fri Aug 20, 2021 9:24 am
@Fred:
At least create a compiler option in a combobox:
1) GCC 8.5
2) GCC 11.2
One supported and maintained version of gcc would be enough IMHO. Let's not make it complicated. If you want, you can switch versions yourself...
User_Russian wrote: ↑Fri Aug 20, 2021 10:03 am
Fred has not been on the forum for a long time...
I would not venture to ask Fred to support every C compiler on the planet! He would never get anything else done! But, it is his choice.
In the meantime, just rename your GCC, and create a new program with the old GCC name. The new program can be a selector, or it can merely be the new GCC. Fred has encouraged this with the assembler, for making edits to assembly prior to assembling. There is no reason you cannot do this with the C compiler.
If you want to compare the output of different GCC versions or get a better insight what the compiler actually does when it "optimizes" (e.g. -O2) your code, you can go to Compiler Explorer, set the language to C, choose a compiler and paste (or load) your Purebasic.c file (create with: pbcompilerc.exe app.pb /commented) there. Just add #define __stdcall to the beginning of your code and you are ready to go... HF
Tenaja wrote: ↑Fri Aug 20, 2021 12:42 pm
I would not venture to ask Fred to support every C compiler on the planet! He would never get anything else done!
The notion that we are asking Fred to support every C compiler on the planet is moronic. We were simply asking why the latest version was not being used.
Alpha 4 is ready to test ! We fixed almost all reported bugs (except one), so we hope we are closer to a beta release. Next step is adding DLL support and building the C compiler on Linux and OS X. Don't hesitate to give it a try, and report any differences between the ASM and C backend.
The formatdate() bug is still there (but that a PB5 bug I guess)
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein