Search found 316 matches
- Jan 18, 2021 0:40
- Forum: General
- Topic: Why is there a Known Compiler Bug from 2012 still in?
- Replies: 13
- Views: 432
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...
- Jan 18, 2021 0:24
- Forum: Community Discussion
- Topic: FreeBASIC 1.08 Development
- Replies: 306
- Views: 27259
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 ...
- Jan 06, 2021 11:50
- Forum: Community Discussion
- Topic: FreeBASIC 1.08 Development
- Replies: 306
- Views: 27259
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...
- Jan 05, 2021 23:00
- Forum: Community Discussion
- Topic: FreeBASIC 1.08 Development
- Replies: 306
- Views: 27259
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"...
- Jan 05, 2021 22:16
- Forum: Windows
- Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
- Replies: 11
- Views: 4882
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...
- Jan 05, 2021 13:32
- Forum: Windows
- Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
- Replies: 11
- Views: 4882
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...
- Jan 05, 2021 13:20
- Forum: Community Discussion
- Topic: FreeBASIC 1.08 Development
- Replies: 306
- Views: 27259
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...
- Jan 05, 2021 11:06
- Forum: Community Discussion
- Topic: FreeBASIC 1.08 Development
- Replies: 306
- Views: 27259
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...
- Jan 04, 2021 22:38
- Forum: Community Discussion
- Topic: FreeBASIC 1.08 Development
- Replies: 306
- Views: 27259
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...
- Jan 04, 2021 6:43
- Forum: Community Discussion
- Topic: FreeBASIC 1.08 Development
- Replies: 306
- Views: 27259
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...
- Jan 04, 2021 4:56
- Forum: Windows
- Topic: Win64: fbGFX "-s gui" exe starts graphics window not on focus
- Replies: 11
- Views: 4882
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 ...
- Jan 03, 2021 12:37
- Forum: Linux
- Topic: Why do graphics programs require libtinfo/ncurses?
- Replies: 9
- Views: 826
Re: Why do graphics programs require libtinfo/ncurses?
[roland@localhost test]$ nm printf | grep -i print U __fprintf_chk@@GLIBC_2.3.4 U __snprintf_chk@@GLIBC_2.3.4 U snprintf@@GLIBC_2.2.5 [roland@localhost test]$ BTW, the @@GLIBC_2.3.4 suffix does indeed mean it requires glibc 2.3.4+, which was released on 2004-12-29. If you're like to check which gli...
- Jan 03, 2021 11:52
- Forum: Linux
- Topic: Why do graphics programs require libtinfo/ncurses?
- Replies: 9
- Views: 826
Re: Why do graphics programs require libtinfo/ncurses?
Yes, I'd like to make the libtinfo dependency optional, it's truly awful. Maybe fbc could avoid it automatically if you don't use any commands that need to read termcaps, just like libfbgfx is optional. If you don't want your Linux binaries to depend on libtinfo nor libncurses then you can use the s...
- Jan 01, 2021 15:09
- Forum: General
- Topic: Translating zero length arrays in C headers
- Replies: 6
- Views: 436
Re: Translating zero length arrays in C headers
I was going to go with marcov's solution, but I forgot that FB doesn't allow zero-length struct either! The Property solution is clever, but is that something that should be put in the windows headers? That would be completely unexpected. Padding the data structure may be useful for reading MIDIEVEN...
- Dec 31, 2020 2:19
- Forum: Projects
- Topic: xRpgMaker Project
- Replies: 14
- Views: 580
Re: xRpgMaker Project
Ignore the naysayers! There's plenty of reason to write your own RPG engine, which is why there are so many of them :). RPG Maker isn't free, so any open source engine has at least one huge advantage over it. It's an advantage to provide resources with the engine, but that's not necessary to either;...