Search found 1886 matches

by coderJeff
Apr 14, 2019 21:00
Forum: Community Discussion
Topic: Where can I get a Recent-Git-Build of FreeBASIC?
Replies: 429
Views: 59411

Re: Where can I get a Recent-Git-Build of FreeBASIC?

Oops, I thought I did that right after the release in commit 443d4d5a4086fc676cb36a958202107e254765cf
But I missed committing fb.bi somehow.

I've updated fb.bi to version 1.07.0 now in 103359f47ddb5bd7241d674ce5fd9977f95f1723
by coderJeff
Apr 13, 2019 21:17
Forum: General
Topic: Memory allocation study for character data of var-len string
Replies: 11
Views: 1764

Re: Memory allocation study for character data of var-len string

For the 'a += b' string optimizations, I think the goals are as follows: 1) zero or one (re)allocation of memory for each operation 2) With combined concat+assign '+=', add an extra buffer (12.5%) for string building The rtlib currently has 2 functions available: 1) (a + b), concatenate a and b and ...
by coderJeff
Apr 13, 2019 0:18
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 426

Re: Speed issue with string concatenation and a solution

7 years ago, I had already written a feature request about this problem: #245 Execution speed optimization of var-len string instruction oops, I added the comments to the topic that the feature request references: https://www.freebasic.net/forum/viewtopic.php?f=3&t=19781 Using examples from thi...
by coderJeff
Apr 13, 2019 0:04
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 11
Views: 764

Re: variadic functions and argument lists in fbc

The issues (bugs) appear to be with null pointer checks, with comparisons (IF statements) or generated (-exx compiler option) or internal pointer checks (NEW/DELETE). Here's a variation of your original test case for new/delete that highlights each case: I created a pull request for the following: ...
by coderJeff
Apr 12, 2019 23:57
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 11
Views: 764

Re: variadic functions and argument lists in fbc

When counting_pine, dkl, and I were discussing the design of the C va_list type, there were 2 ways we could go: 1) an abstract type, like what we are using now, where fbc knows some things about va_list usage, but not the full implementation in the backend. 2) a completely new and separate type (lik...
by coderJeff
Apr 12, 2019 23:24
Forum: General
Topic: Memory allocation study for character data of var-len string
Replies: 11
Views: 1764

Re: Memory allocation study for character data of var-len st

No optimization when: - 'other_string' is not a very simple expression, - or 'string' is a reference from a string pointer or a procedure parameter passed by reference or a member of a type ( 'This.*' ). => bug report? ---- Here are a few details on what fbc is doing under the hood : When fbc alloc...
by coderJeff
Mar 26, 2019 1:12
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 11
Views: 764

Re: variadic functions and argument lists in fbc

Can we use dynamic Cva_List variables (with New/Delete)? : Yes, it's supposed to work with pointer types. Thank-you for testing. For example: Sub proc cdecl(byval count As Integer, ... ) Dim pargs As Cva_List ptr = allocate( sizeof(Cva_List) ) Cva_Start( *pargs, count ) For i As Integer = 1 To coun...
by coderJeff
Mar 26, 2019 0:56
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 11
Views: 764

Re: variadic functions and argument lists in fbc

..... Cva_Start is like a constructor for the variadic argument_list object and must eventually have a matching call to Cva_End, which is like a destructor. ..... Does this mean that if not calling Cva_End, the "destructor" will be called automatically when the Cva_List variable goes out ...
by coderJeff
Mar 24, 2019 17:15
Forum: Linux
Topic: fbc_1.06.0-1_amd64.deb
Replies: 4
Views: 380

Re: fbc_1.06.0-1_amd64.deb

Ok, thanks. Uploaded to sf.net and added the following to the 1.06.0 News post

Binaries - User Contributed
by coderJeff
Mar 24, 2019 15:35
Forum: Beginners
Topic: Compiling the runtime library
Replies: 16
Views: 1029

Re: Compiling the runtime library

unfortunately I cannot remember the reason why MSYS2 didn't work there back then either. For manual builds on other machines I'm using MSYS2 nowadays and it works just fine. mingw-org (the first one, 32-bit) has very good support for long command lines on windows. You can see what the limits are by...
by coderJeff
Mar 24, 2019 15:00
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 82
Views: 7030

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

gothon wrote:...After further investigation I saw that the code posted by angros47 seems to push the projection matrix stack, but it pops the model-view matrix stack.
...
This is probably a bug in the new feature!


@gothon, thanks for your pull request. Fixed in fbc 1.07.0.
by coderJeff
Mar 24, 2019 14:54
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) :-)
Replies: 41
Views: 2610

Re: Gas64 (no more use of gcc, only gas) :-)

Hi SARG > * style > Everyone uses the style that suits him ;-) I have started to do the changes. The reason I mention this, is that the code is worked on by multiple people, and visually, it is less distracting when the overall code has similar style. When I go back and review code years later, I ca...
by coderJeff
Mar 24, 2019 14:24
Forum: DOS
Topic: Difficulties in DOS on real hardware
Replies: 29
Views: 1390

Re: Difficulties in DOS on real hardware

I don't spend much time on the DOS version because the development cycle is truly tedious compared to win/linux. Here's some areas for improvement: - a really good emulator that faithfully respects the instruction set (386/486), and peripherals (video, etc). It's possible that over the years, that n...
by coderJeff
Mar 16, 2019 21:25
Forum: Documentation
Topic: Wiki improvements
Replies: 268
Views: 19219

Re: Wiki improvements

Yes, wiki is wrong. Values were changed in 2007 and wiki never updated. inc/fbgfx.bi is correct. Some explanation: fb's scancodes come from legacy DOS use (which would have typically been the raw values returned by keyboard controller port &h60). The actual values used by the operating system (k...
by coderJeff
Mar 16, 2019 20:31
Forum: Projects
Topic: 3 of 9 barcode include for FreeBasic
Replies: 3
Views: 339

Re: 3 of 9 barcode include for FreeBasic (Update)

Hi Pim. I edited your subject title. When it's changed to just "Update" we lose the original subject on the forum summary page.

Go to advanced search