Search found 3286 matches

by coderJeff
Jun 18, 2024 0:21
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29525

Re: Freebasic 1.20.0 Development

Xusinboy Bekchanov wrote: Jun 11, 2024 8:04 In GTK4 these two arguments have been removed. How to fix it?
Perhaps implement your own entry point?

Code: Select all

#ifdef __USE_GTK4__
	#define generic_gtk_init() gtk_init()
#else
	#define generic_gtk_init() gtk_init(0, 0)
#endif

generic_gtk_init()
by coderJeff
Jun 18, 2024 0:18
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29525

Re: Freebasic 1.20.0 Development

Since SWAP is in the discussion I've been meaning to ask: why does it enforce no parenthesis? It's the only keyword I've seen that rejects optional parenthesis. fbc doesn't enforce it exactly; the parser just doesn't have any logic to check for optional parentheses. Like ?, PRINT, and ERASE, and ma...
by coderJeff
Jun 18, 2024 0:11
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29525

Re: Freebasic 1.20.0 Development

It's a bug. Example in a short code #define foo(a,b) foo1(a,b) #ifdef notdefined not a statement <-- don't throw an error foo() <--- throw an error #endif It's something, for sure, but, I don't know I would call it a bug. Macros are super global and handled by the lexer, and so skipping over macro ...
by coderJeff
Jun 17, 2024 0:30
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29525

Re: Freebasic 1.20.0 Development

Last few of weekends, working on: - demangler - which evidently is non-trivial to implement from scratch. Itanium c++ ABI gives a BNF grammar, which, oh joy, has left recursive productions and lots of special notes. - testing of release packages (trying to sort out my build scripts) Of note to users...
by coderJeff
Jun 09, 2024 11:54
Forum: Documentation
Topic: basic macros (built-in macros)
Replies: 20
Views: 6372

Re: basic macros (built-in macros)

fxm, thank-you!
by coderJeff
Jun 09, 2024 11:42
Forum: Community Discussion
Topic: FreeBASIC 1.10.1 Release Discussion
Replies: 156
Views: 29549

Re: FreeBASIC 1.10.1 Release Discussion

Adding extern wrap solwed error, but FB10 did not complain either way. Yes, changed in fbc 1.10.0 commit: commit: f02c400 If we have a procedure declaration (which will have a calling convention either explicitly or by default) and the definition does not explicitly specify a calling convention, th...
by coderJeff
Jun 02, 2024 1:06
Forum: General
Topic: [SOLVED] Pass UTF-8 strings
Replies: 39
Views: 3312

Re: [SOLVED] Pass UTF-8 strings

I think it would be worthwhile to handle the source file as a container only, and then add a precise way to indicate the encoding of literals in source code. That way if fbc doesn't support a particular conversion either at compile time, or implicitly at run time, it can error out on what is not sup...
by coderJeff
May 22, 2024 9:41
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29525

Re: Freebasic 1.20.0 Development

Before returning to work on strings, I find myself with a puzzle to solve before I can move on. I started fully testing the build process for release packages since the recent additions. With manual intervention it is certainly possible make all 1.20 release builds from 1.10.x and pass the test suit...
by coderJeff
May 18, 2024 11:52
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3607

Re: Profiling freebasic programs

In the last update 2024-05-17, the '-profgen fb' is mostly doing the kinds of things that I want it to do. - can build the fbc test suite profiled and generate the report - can build fbc itself and then compile fbc to generate a profiling report. - Lots of information is collected and the report out...
by coderJeff
May 18, 2024 11:38
Forum: General
Topic: [FBC 1.10.1 BUG] Define concat and stringize
Replies: 5
Views: 464

Re: [FBC 1.10.1 BUG] Define concat and stringize

Me too, but I regret that Discord takes priority over the Forum (I suppose the question was asked on both). For me, the forum is still priority for communication about freebasic. Discord offers convenience for live conversation but if I gave discord priorty I would get nothing else done so for me i...
by coderJeff
May 16, 2024 9:49
Forum: Linux
Topic: fbc works on Debian 11 but not on Debian 12
Replies: 8
Views: 680

Re: fbc works on Debian 11 but not on Debian 12

Can someone shed some light on this please. fbc uses gcc to compile programs. fbc intends to build to 'arm-linux-gnueabihf' target, but gcc default options have changed over the years - required on gcc 12: -march=armv7-a does not enable hard float so -march=armv7-a+fp required - optional on gcc 8 t...
by coderJeff
May 13, 2024 9:29
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3607

Re: Profiling freebasic programs

Not fixed yet (after last update) ? Correct, not fixed yet. I'm not sure what to do. Currently, the argument to ProfileIgnore() list must match the generated assembly name of the procedure which may vary between targets (windows / linux / etc ). All procedures are identified by strings and need to ...
by coderJeff
May 07, 2024 10:36
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3607

Re: Profiling freebasic programs

But accumulation of procedures (or builtin instructions) should only be carried out in the same thread, because it is illogical to add up the execution times of procedures (or builtin instructions) that execute in parallel (not serially). ... Yes, have been working on all this. In the next update t...
by coderJeff
May 01, 2024 9:19
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3607

Re: Profiling freebasic programs

Child procedures with the same name (regardless of their nesting orders) must be accumulated in the 'Global results' section Yes, agreed. I added the procedure count using same method as total time. I think the issue is a carry over from original implementation. In this example the total time for s...
by coderJeff
May 01, 2024 9:12
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3607

Re: Profiling freebasic programs

Why the call tree representation depends on the procedure-name size (the only change) ? The procedure information is stored in a kind of hash table and the hash index is generated by a hashing function that operates on the procedure name. The order of procedures will follow the hashing index. So, n...