Search found 3282 matches

by coderJeff
Jun 09, 2024 11:54
Forum: Documentation
Topic: basic macros (built-in macros)
Replies: 20
Views: 6243

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: 29372

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: 3226

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: 274
Views: 27596

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: 3495

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: 428

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: 586

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: 3495

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: 3495

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: 3495

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: 3495

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...
by coderJeff
Apr 29, 2024 21:46
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3495

Re: Profiling freebasic programs

Could you give a little information on these SUBs that can be used in the case of multi-threading ? #if __FB_MT__ extern "rtlib" declare sub fbProfileLock alias "fb_ProfileLock" () declare sub fbProfileUnlock alias "fb_ProfileUnlock" () end extern #endif 'fbProfileLock...
by coderJeff
Apr 29, 2024 0:44
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3495

Re: Profiling freebasic programs

Call fb's profiler directly to perform custom profiling and a report Also, what is the feature of 'fbc.InitProfile()' ? note: name changed in the last update These procedures expose fb's profiler as an API that can then be called directly and used to generate a profiling report based on whatever st...
by coderJeff
Apr 29, 2024 0:10
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3495

Re: Profiling freebasic programs

Conditional generation of profiling code #pragma profile [=value]' or '#pragma push( profile [,value] )' "#pragma profile" controls the generation of profiling code. This allows optionally including or excluding sections of source code to be profiled. when #pragma profile = true, then pro...
by coderJeff
Apr 28, 2024 23:57
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 3495

Re: Profiling freebasic programs

Conditional compilation depending on profile code generation method - add '__FB_PROFILE__' __FB_PROFILE__ is an intrinsic define set to an integer to indicate the profiling method. namespace FBC enum PROFGEN_ID PROFGEN_ID_NONE = 0 PROFGEN_ID_GMON = 1 PROFGEN_ID_CALLS = 2 PROFGEN_ID_CYCLES = 3 end e...