Search found 320 matches

by TeeEmCee
Feb 06, 2021 2:22
Forum: Community Discussion
Topic: Solaris Support?
Replies: 9
Views: 479

Re: Solaris Support?

Using a cross compiler is nice to have but not necessary, because FB has bootstrapping support, and not sufficient for a real port or testing. You "make bootstrap-dist" on an OS with a functional fbc (you likely would want to edit bootstrap-dist in makefile to target the specific OS you wa...
by TeeEmCee
Feb 06, 2021 2:05
Forum: Community Discussion
Topic: Mac OS X Support
Replies: 37
Views: 2702

Re: Mac OS X Support

You don't have GCC installed. Look again. % gcc --version ... Apple clang version 11.0.0 (clang-1100.0.33.17) Installing GCC may or may not be the easiest solution. (Hint: set the "GCC' environmental variable to tell fbc where gcc is) FB does not yet support compiling with clang out of the box,...
by TeeEmCee
Jan 24, 2021 23:54
Forum: General
Topic: Nested GOSUBs crashes the program if compiled with GCC 64-bit
Replies: 16
Views: 650

Re: Nested GOSUBs crashes the program if compiled with GCC 64-bit

Interesting, if you look at mingw's setjmp.h header you see that it's completely different to mingw-w64's. Note it doesn't support 64-bit Windows (mingw doesn't). Also, looking again at mingw-w64's header, maybe fbc should call __mingw_setjmp and __mingw_longjmp instead? However those functions may ...
by TeeEmCee
Jan 24, 2021 23:22
Forum: General
Topic: Nested GOSUBs crashes the program if compiled with GCC 64-bit
Replies: 16
Views: 650

Re: Nested GOSUBs crashes the program if compiled with GCC 64-bit

I think I see the reason. fbc simply defines and calls _setjmp() itself instead of including setjmp.h like you're meant to. If you look at mingw-w64's setjmp.h you see that there's a lot of complexity. It looks like (maybe) fbc isn't even declaring _setjmp with the right number of args! I think -gen...
by TeeEmCee
Jan 18, 2021 0:40
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 19
Views: 986

Re: Why is there a Known Compiler Bug from 2012 still in?

The -O 2 build which gives faulty results and is also slower may be because denormals, NaNs or infinities are creeping into the calculations, which can greatly slow down some instructions due to causing the CPU to use a slow path. Maybe this is happening due to differences in rounding or precision r...
by TeeEmCee
Jan 18, 2021 0:24
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30564

Re: FreeBASIC 1.08 Development

No, "Linux" is mostly not written in C++. The kernel isn't, the GNU userspace mostly isn't. (GNOME mostly isn't, while Qt/KDE is.) The only part of the core userspace that I know of that's C++ is GCC, which switched from C pretty recently. As for programming languages, they're implemented ...
by TeeEmCee
Jan 06, 2021 11:50
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30564

Re: FreeBASIC 1.08 Development

On Unix it's not too bad, but on Windows I feel uneasy about making fbc invoke an extra commandline program, due to the time it might take. Should we not worry? The lower-overhead alternative is to recover if llc fails to run. Yes, system "as" on Mac has been llvm-as for a few (XCode?) rel...
by TeeEmCee
Jan 05, 2021 23:00
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30564

Re: FreeBASIC 1.08 Development

On Linux I haven't yet seen an llvm package that didn't include llc... If you include crosscompiling toolchains, the Android NDK for Linux doesn't include it and apparently never has. I just downloaded the latest NDK to check it doesn't have it either. In fact the changelog says that "as"...
by TeeEmCee
Jan 05, 2021 22:16
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 11
Views: 5103

Re: Win64: fbGFX "-s gui" exe starts graphics window not on focus

Thanks for the explanation. It's always fascinating to me how one piece of software trying to do the right thing adds extra complexity that stuffs things up for other software. I don't really care whether this problem is fixed, I just wanted to mention and document it since I was puzzled and surpris...
by TeeEmCee
Jan 05, 2021 13:32
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 11
Views: 5103

Re: Win64: fbGFX "-s gui" exe starts graphics window not on focus

The latest FB version (compiled from git) does NOT fix the problem I mentioned, that was my point. I don't use FB 1.04, I only tested with it to confirm it isn't a recent problem. FB and fbgfx supports Windows 95 still, although I could accept that only the GDI driver supports Win XP (it would surpr...
by TeeEmCee
Jan 05, 2021 13:20
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30564

Re: FreeBASIC 1.08 Development

See https://github.com/freebasic/fbc/pull/279 Has anyone ever actually used -gen llvm on Windows before? Was it intended that FB would provide a llc.exe build on Windows? Since clang.exe will (eventually) also be usable for -gen gcc, it seems preferably to just provide clang.exe and not need llc.exe...
by TeeEmCee
Jan 05, 2021 11:06
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30564

Re: FreeBASIC 1.08 Development

Well, I'm not a Windows user, but did some googling, and can see a number of people online mentioning that (for years already) there is no llc.exe provided (although you can compile it yourself). fbc wants llc.exe, but it turns out that clang can compile .ll files too. It defaults to producing an ex...
by TeeEmCee
Jan 04, 2021 22:38
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30564

Re: FreeBASIC 1.08 Development

Yes, I also want FreeBASIC to use the LLVM code emitter. At the moment, FreeBASIC is able to generate LLVM assembly language format (.ll), but I do not know what to do with it next. Huh? You don't need to do anything with the .ll files, "fbc -gen llvm" will generate .ll (LLVM assembly lan...
by TeeEmCee
Jan 04, 2021 6:43
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 309
Views: 30564

Re: FreeBASIC 1.08 Development

LLVM or Clang? Iow linking to LLVM to create a backend, or generating C customized for CLang? As for the former, I'm not hearing happy sounds in that camp. Anyway, long term you will have to, since BSDs and Apple targets are moving away from GCC Some already don't support GCC. For example Android h...
by TeeEmCee
Jan 04, 2021 4:56
Forum: Windows
Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
Replies: 11
Views: 5103

Re: Win64: fbGFX "-s gui" exe starts graphics window not on focus

This thread was actually about two different bugs: -the fbgfx DirectX backend not working on 64-bit Windows, which is now fixed; -if the fbgfx DirectX backend fails to initialise then the window appears for an instant, then opens behind all open windows when it falls back to the GDI driver. Testing ...

Go to advanced search