Page 1 of 1

How to create a fast lib from QBasic code?

Posted: Mon Jul 09, 2007 11:45 am
by Codemss
I want to make a library for Qbasic, and I want to have some kind of image loader in it. I want to load as much types as images as possible :wink:.

But, the only manner I know to get this in a library is to compile the Qbasic code to an OBJ file, an include that in the library. But I want it to be as fast as possible also.

So, is it possible to make it faster (for example by using another programming language)?

RubyNL

Posted: Mon Jul 09, 2007 3:59 pm
by Nodtveidt
Assembly language is the way to go if you want to make potentially faster libraries than native QB code. You could also use something like QuickC, but it won't give you quite the same performance and will likely also be larger.

Posted: Wed Jul 11, 2007 11:45 am
by Codemss
So, you think I should ask some assembly programmer to translate the BASIC code into ASM? I don't even know if this is possible...

Anyway, what I want is a SUB that you can load like this:

loadimage "C:/blah.png"

And I want it to be fast. I know you can do this with Qbasic(though that is not so fast), but is it also possible using ASM, to speed it up?

Posted: Fri Jul 13, 2007 1:59 am
by BadMrBox
As I know absolutely no ASM I have to say yes.