Search found 2225 matches

by 1000101
Jun 05, 2012 17:43
Forum: Community Discussion
Topic: OO in FB
Replies: 27
Views: 2433

Re: OO in FB

Newbie Question! 1000101, what do you mean by "in both the gcc and gas backends." Does FB .24 not compile directly to native and support these OO features. 1000101 wrote: All that stuff has been in the stable releases for a little while now. The fun stuff is in .24 (at the time of this wr...
by 1000101
Jun 05, 2012 17:23
Forum: Community Discussion
Topic: Freebasic v's C# code execution speed ?
Replies: 31
Views: 2626

Re: Freebasic v's C# code execution speed ?

Actually there are lots of sites which compare language speeds for simple constructs. All of them are misleading given that it's not the language constructs which are the bottleneck but the algorithm used. Your first place to start optimizing for speed is to create a faster algorithm. The machine sp...
by 1000101
Jun 02, 2012 21:28
Forum: Community Discussion
Topic: Deprecation of the freebasic assembler back end
Replies: 44
Views: 4561

Re: Deprecation of the freebasic assembler back end

I have no problem with a gcc backend (although I think it's a bit silly instead of just having an LLVM backend) and I understand the push to move towards it. If they standardized the inline asm across the two backends (gas vs gcc) by translating the inline to be gcc compatible then it's a no brainer...
by 1000101
Jun 02, 2012 21:18
Forum: Community Discussion
Topic: OO in FB
Replies: 27
Views: 2433

Re: OO in FB

Although the destructor is called (and strings should implicitly be deallocated) I just don't trust that compiler will always properly deallocate memory given that earlier versions of the compiler didn't implicitly deallocate strings in user-defined types when they were destroyed. Mostly it's just m...
by 1000101
Jun 02, 2012 18:33
Forum: General
Topic: The great OO errorthread
Replies: 11
Views: 602

Re: The great OO errorthread

Member functions implicitly pass a class pointer as the first parameter. Just change your static members to take an explicit pointer to the class and you can avoid a global. ie: type myclass declare sub member_func ( as integer ) declare static sub static_member_func ( as myclass ptr, as integer ) e...
by 1000101
Jun 02, 2012 18:25
Forum: Projects
Topic: sGUI
Replies: 213
Views: 32321

Re: sGUI

Very nice UI. I looked at the source and I like it's simple coding interface and how it's easy method to handle input.
by 1000101
Jun 02, 2012 18:04
Forum: Community Discussion
Topic: OO in FB
Replies: 27
Views: 2433

Re: OO in FB

All that stuff has been in the stable releases for a little while now. The fun stuff is in .24 (at the time of this writing only available as a daily build ) which includes inheritance in both the gcc and gas backends. Important keywords: extends , is , base , object eg: Type vehicle extends object ...
by 1000101
May 31, 2012 19:10
Forum: Tips and Tricks
Topic: Slack halyard
Replies: 8
Views: 1155

Re: Slack halyard

This reminds me of the 3d flag snippets in the ABC packets.
by 1000101
May 31, 2012 18:42
Forum: Community Discussion
Topic: CPU cache speeds vs Ram speeds
Replies: 17
Views: 1224

Re: CPU cache speeds vs Ram speeds

People who are writing assembler code or writing compilers have a deep understanding of how cores, caches, io and other periphery all interact with each other. What is useful for high-level coders is an understanding of cache sizes and cache lines. Those play the biggest rolls in determining program...
by 1000101
May 23, 2012 4:05
Forum: Windows
Topic: FB WIN32 SVN Daily Build
Replies: 126
Views: 53222

Re: FB WIN32 SVN Daily Build

I use the asm backend generally so the gcc backend isn't too important to me.

Anyway, no worries I suppose (the minimalist in me rebels) a few more mb doesn't hurt.
by 1000101
May 22, 2012 18:02
Forum: Windows
Topic: FB WIN32 SVN Daily Build
Replies: 126
Views: 53222

Re: FB WIN32 SVN Daily Build

Ahh, seeing as I and a few others never use -gen gcc it could be a "secondary download?" ie: "here's 24MB of gcc dependencies for those who want it. (although I don't know why you would, just code in C if you want C)."
by 1000101
May 21, 2012 23:05
Forum: Windows
Topic: FB WIN32 SVN Daily Build
Replies: 126
Views: 53222

Re: FB WIN32 SVN Daily Build

It's great you got your daily builds going again, I just have one question...why is the win32 build so large?
by 1000101
May 19, 2012 20:51
Forum: Community Discussion
Topic: Deprecation of the freebasic assembler back end
Replies: 44
Views: 4561

Re: Deprecation of the freebasic assembler back end

hrm, after re-reading this thread I started wondering, AGS, where did you get your information? The .24 gas backend supports inheritance which v1ctor added, it supports class related functionality equally with the gcc and gas backends (as far as classes go which isn't very far). Also, I read no ment...
by 1000101
May 17, 2012 19:05
Forum: Projects
Topic: GameX - Game Library for FreeBASIC
Replies: 34
Views: 5468

Re: GameX - Game Library for FreeBASIC

vdecampo, it seems that the threading issues in gfxlib2 have been resolved in fbc .24 as well as adding inheritance to the gas backend. I've been using the .24 -gen gas backend with classes, multi-threading and fbgfx without issue. I know gfxlib2 was problematic in .23 and earlier but it doesn't see...
by 1000101
May 17, 2012 18:48
Forum: Community Discussion
Topic: Deprecation of the freebasic assembler back end
Replies: 44
Views: 4561

Re: Deprecation of the freebasic assembler back end

Back to the backends... I've never used the -gen gcc backend. If I wanted to have a C/C++ program I would program in C/C++. I always use the -gen gas backend. Largely because anything which does require the speed can be done in inlined asm or as a naked asm function without having to separately comp...

Go to advanced search