Search found 1402 matches

by yetifoot
Dec 12, 2008 12:32
Forum: Community Discussion
Topic: C inline switch for FreeBASIC
Replies: 33
Views: 6356

If C headers were a simple affair, with just lists of structs, and simple procedure declarations this could be a possibility, but many contain complex pragmas, inline functions, tough define style functions, and all that good stuff we love C for. To correctly handle all of the odd cases, we'd basica...
by yetifoot
Dec 12, 2008 12:15
Forum: Tips and Tricks
Topic: Small Speed Test (ASM vs FB)
Replies: 17
Views: 3881

For the original code, perhaps the ASM code is coming up slower for some people because it uses 16 bit registers? AX, etc. AFAIK using 16 bit registers can be slower, as it's not the native machine size. The general way FB creates it's ASM is by an expression/line basis. It has no knowledge of prior...
by yetifoot
Dec 06, 2008 10:48
Forum: General
Topic: ANOTHER question: Erasing a UDT
Replies: 26
Views: 3447

AFAIK, in FB, Clear is just an alias to memset, same as Allocate is an alias to malloc, and Deallocate is an alias to free.
by yetifoot
Dec 06, 2008 10:04
Forum: Linux
Topic: Threadcreate hangs on linux
Replies: 8
Views: 2115

Hello. I have tested this code under Debian Etch, with an SVN version of FBC, and it seems to work fine as far as I can tell. When I start the program, I get a white screen, with a progressbar that is moving to the end then restarting, then when I click the left button as instructed, the program clo...
by yetifoot
Dec 05, 2008 10:13
Forum: Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 9590

The first version that compiled itself was 24 hours in, I guess I had spent real time about 6/8 hours on it to that point, then what i've posted here was with another few hours of work.
by yetifoot
Dec 04, 2008 13:10
Forum: Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 9590

It was just a bit of a self-challenge really, I may add a bit of polish and fix the issues and so on, but I don't plan to aim for the big time or anything. you can make them a little smaller by doing g++ -O2 -s tiny1.c -o tiny1 or such, -O2 shoves some optimization on, and -s strips the executable. ...
by yetifoot
Dec 04, 2008 12:34
Forum: Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 9590

OK, thanks to nkk for helping me out with windows testing, it should run fine on windows now. The issues were the forum made Any and String capitalized, and I hadn't put an lcase() check in that. Also make sure tinybasic.bas ends in a blank line, or it will get confused on that also. EDIT: I think t...
by yetifoot
Dec 04, 2008 11:56
Forum: Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 9590

Ah, that's a shame. I'm working on Linux with GCC 4.X, a lot changed in the time between 3.X and 4.X, I'm not really shocked it's incompatible.

Looks like it may just be the typedefs though for the most part, I'll see if I can get it working for windows too.
by yetifoot
Dec 04, 2008 7:17
Forum: Tips and Tricks
Topic: Quick and dirty self hosting BASICish compiler
Replies: 32
Views: 9590

Quick and dirty self hosting BASICish compiler

I decided for a bit of a self-challenge to write a self hosting compiler of sorts, as quickly as possible. I thought I'd share what I have so far before it gets even more unwieldy. Self hosting means that the compiler can compile itself. This program takes its input from stdin, and outputs a source ...
by yetifoot
Dec 02, 2008 8:32
Forum: Community Discussion
Topic: Naked Functions... Say what?
Replies: 7
Views: 2319

Yes, it is the same type of naked as vdecampo pasted. You just end up getting a label: in the asm and that is all, as said everything else must be handled by you. It can be useful for people writing low level code like drivers, or calling conventions that the higher language doesn't support, or more...
by yetifoot
Nov 16, 2008 7:12
Forum: Community Discussion
Topic: Rebuilding the core of FreeBASIC. Maybe this could work.
Replies: 22
Views: 4939

I just don't see this as likely, sorry. QB, well, that is the heritage of FB, and we get some users migrating from there, so it looks like we will continue to support that in some shape or form in lang qb, but adding all these other versions is just too much work. We only have enough developers/deve...
by yetifoot
Nov 14, 2008 3:12
Forum: Community Discussion
Topic: MOCKUP of FreeBASIC 1.0 Goals
Replies: 52
Views: 11351

For me, the roadmap is those things in the TODO list, and the visions for FB that v1ctor has spoken about in his forum postings. Although perhaps it would be nice to have a more detailed plan, we do have plenty to go on in many areas. http://fbc.svn.sourceforge.net/viewvc/fbc/trunk/FreeBASIC/src/com...
by yetifoot
Nov 14, 2008 1:34
Forum: Community Discussion
Topic: Unofficial Chinese language support.
Replies: 9
Views: 2084

Unofficial Chinese language support.

Someone on IRC wanted help modifying FB so that he can use Chinese variable names, and use #define to be able to change the keywords to Chinese also. Here is an unofficial quick patch that I made that allows the Chinese style 'double' encoding, in case others want to do this. Also if you wanted to d...
by yetifoot
Nov 14, 2008 1:28
Forum: Community Discussion
Topic: freebasic goals
Replies: 5
Views: 2451

I'm still reading and considering the post, but for now I removed your name/address/phone number from the bottom. It's not really a good idea to put all that info on the internet like you did in my opinion.
by yetifoot
Nov 14, 2008 1:25
Forum: Community Discussion
Topic: Suggestion about [code] tag
Replies: 5
Views: 1540

You can also use the Quote blocks, doesn't have the same nice folding as Code blocks, but preserves the formatting.

Go to advanced search