Search found 3311 matches
- Jul 07, 2025 0:59
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 332
- Views: 106184
Re: Freebasic 1.20.0 Development
The compiler cannot read surrogate pairs: 1) I found and have a fix for a 20 year old bug - fbc lexer incorrectly converts UTF-8, UTF-32LE, UTF-32BE to surrogate pair when codepoint is > &hffff. With windows as target, the emitted string literals in gas/gas64/gcc backends are converted to UTF-1...
- Jul 07, 2025 0:42
- Forum: Documentation
- Topic: CompilerOptfpmode
- Replies: 2
- Views: 217
Re: CompilerOptfpmode
No function or macro; fbc gas optimizer is written to detect the expression: constant float 1.0 of type single + division + ( sqr or expresssion of single type) r = 1! / a r = 1! / sqr(a) But appears to be bugged for x87 and needs to be fixed. Either disable this optimization for x87, or implement t...
- Jun 01, 2025 11:22
- Forum: Community Discussion
- Topic: Bug?
- Replies: 17
- Views: 4734
Re: Bug?
I looked at 32-bit only. A working range of -1E9 to +1E9 for graphics coordinates might be about the limits for consistent behaviour, though I didn't review code extensively, so range may actually be less depending on the math in gfxlib. Coordinates are translated to screen, rounded to integer, and ...
- May 31, 2025 12:20
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 332
- Views: 106184
Re: Freebasic 1.20.0 Development
Where can I find a FreeBASIC release using GCC 13? I personally like to build FB with the version of gcc that will be included with FB I really appreciate the packaged builds you put out. Super helpful, thank-you. For me, earlier in the year I had set some goals for getting to the next fbc release....
- May 31, 2025 12:05
- Forum: Beginners
- Topic: Test load save a File
- Replies: 15
- Views: 3761
Re: Test load save a File
@Jeff , - Will Binary/Random Access file mode remain allowed with [Line] Input#/Input()/Write#/Print# , and will Input/Output/Append Access file mode remain allowed with Get#/Put# ? - If so, should this be added to the FreeBASIC documentation (as a simple note I propose, without precise description...
- May 12, 2025 10:26
- Forum: Beginners
- Topic: Stability Question
- Replies: 6
- Views: 2003
Re: Stability Question
(1) Is FB still in beta or is it that the docs just were not amended? I consider freebasic as it is to be stable; while certainly not bug free, releases are very well tested. However, there is always something still to do, and development is really slow, and users are always coming up with new idea...
- Apr 28, 2025 11:24
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 332
- Views: 106184
Re: Freebasic 1.20.0 Development
About the new fix-len string ( 'String * N' ) definition since fbc version 1.20.0 ( 'String * N' now occupies N bytes and has no terminating null character) fxm, thanks for the report. I think the surface level bug is that the compiler error message doesn't describe the actual problem, so is confus...
- Apr 27, 2025 14:20
- Forum: General
- Topic: which version of gdb.exe for FreeBASIC Version 1.20.0 windows 32-bit (standalone) ?
- Replies: 25
- Views: 4582
Re: which version of gdb.exe for FreeBASIC Version 1.20.0 windows 32-bit (standalone) ?
if anyone wishes to try it you may get it it would help me to determine if there are anymore dlls that need to be included, you never know if you have software installed and is on the PATH that has some dll that is common with gdb So far only noticed it also needs 'libgcc_s_seh-1.dll'. I was lazy a...
- Apr 27, 2025 3:26
- Forum: Documentation
- Topic: /wiki/CompilerOptfpmode
- Replies: 5
- Views: 2929
Re: /wiki/CompilerOptfpmode
/wiki/CatPgCompOpt says -fpu default is FPU ??? /wiki/CompilerOptfpu says default is X87 '-fpu fpu' = '-fpu x87' and must be a carryover from early days. Internal to source fbc, 'fpu' represents x87. #cmdline "-fpmode FAST -fpu x87" always induces the error message: error 284: Selected op...
- Mar 31, 2025 8:29
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 332
- Views: 106184
Re: Freebasic 1.20.0 Development
After compiling this example with the latest versions of the compiler 64-bit, this code will fail with an overflow error: ?Val("1") Sleep This happens when the file is a Unicode version. Because of this, the IDE cannot start: https://freebasic.net/forum/viewtopic.php?p=306853#p306853 I ca...
- Mar 18, 2025 10:33
- Forum: Community Discussion
- Topic: Undocumented features?
- Replies: 3
- Views: 2312
Re: Undocumented features?
I just saw this example on the wiki: https://www.freebasic.net/wiki/FaqPgbloadworkaround It uses "fb_fileput" and "fb_fileget", that are not mentioned in the official wiki, nor are part of the official command set. Thanks for pointing that out. First time just seeing this exampl...
- Feb 18, 2025 19:52
- Forum: Documentation
- Topic: Profiling freebasic programs
- Replies: 42
- Views: 26906
Re: Profiling freebasic programs
Can you make the reports show the unmangled function names before you kick it out the door as finished? This has been and is now both an interesting and annoying challenge. I guess some cases still need a little work for more exact output. I also thought would be easy-ish, just following the mangli...
- Feb 18, 2025 19:09
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 332
- Views: 106184
Re: Freebasic 1.20.0 Development
Changes to announce: sf.net # 795 - changed the handling for "\Unnnnnnnn" unicode escape sequences in strings for code points greater than &hFFFFul so that on windows, these get mapped correctly to a surrogate pair. This change doesn't completely solve the bug. I added because it helps...
- Jan 27, 2025 0:32
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 332
- Views: 106184
Re: Freebasic 1.20.0 Development
How can we make comments if we are not clear about what these changes do? Commenting on issues and pull requests is available to anyone logged in at github. A number of times in the past when I comment on pull requests, the author just closes ticket and abandons the effort, so trying to go a differ...
- Jan 26, 2025 10:19
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 332
- Views: 106184
Re: Freebasic 1.20.0 Development
I recently merged in this pull request by SkyFish https://github.com/freebasic/fbc/pull/427 and here is my reason: There's a couple of interesting things going on in this change that I can see from the changes in source and the submitted example, though to be honest I don't for certain know the full...