Page 1 of 1

Any way to compile code usign FASM?

Posted: Sun Apr 11, 2004 5:03 am
by ricardo
Hi,

I make this question once inside other thread but don't have any direct answer.

Here is the complete question:

I code something for a client, he ask me for the source code, but of course he don't have a copy of PureBasic.

Can i give him some way to recompile the code using FASM if i give him the ASM version of my code?

My app uses some libs.

Thanks in advance!

Posted: Sun Apr 11, 2004 6:10 am
by Shannara
If I remember correctly, dont quote me on this :D, but there is a switch in PB to have it translate the PB code to commented ASM. However, I believe that the commented ASM is not compilable in FASM (for some odd reason), therefore its not ASM??? I dont know how that work.. but..... :) Maybe fred will reply :D

Posted: Sun Apr 11, 2004 6:14 am
by ricardo
Yes, i know, some stuff with libs make it hard or impossible to compile.

What i want to know if its just the linker or some other thing that makes it impossible, because my client want the sourcecode but i don't think i will want to buy PB.

Maybe if i can give him the libs as obj or something

Posted: Sun Apr 11, 2004 11:35 am
by freak
The commented ASM source you get from the compiler is only the main program module.
All PB functions are stored in libs, which will later be combined into the executable.

You can't give away the PB librarys in .obj format. First of all, because they
are encrypted, and also because the PB Terms And Conditions forbid that.

If your customer wants a compilable PB sourcecode, the only way is to buy PB.

Timo

Posted: Sun Apr 11, 2004 12:57 pm
by blueznl
at the price of pb, why don't include a copy of pb?

(sounds crazy but why not?)

or simply give him the source, he can always buy pb himself later to compile it if he wants, he want's the SOURCE, so he got it?

don't see the problem :-)

Posted: Sun Apr 11, 2004 8:49 pm
by ricardo
Yes i understand. But not always is easy to make some client accept applications coded in PB, because they think that if you move to another city or something no one will be able to give support to the application.

If we add the difficulty that need to buy PB to compile it... sometimes its not easy.

Hmmm

Posted: Fri Apr 16, 2004 4:46 am
by StarHawk
Come on, PB is so inexpensive, I wouldn't work for a client who demanded source code and then had a problem with spending $60 for PureBasic to compile it. If he's got a qalm about $60, I'd watch your back because your client might stiff you your $$.

Re: Hmmm

Posted: Fri Apr 16, 2004 4:59 am
by ricardo
StarHawk wrote:Come on, PB is so inexpensive, I wouldn't work for a client who demanded source code and then had a problem with spending $60 for PureBasic to compile it. If he's got a qalm about $60, I'd watch your back because your client might stiff you your $$.
I don't think that the $60 is the problem but the problem to find other PB coder if something happends.
If the client knows that he get an ASM code he knows that there are many ASM coders.
The real problem is not that the clinet want to compile the code now, but finding help in a future if for some reason you are not around anymore.

Dealing with real clients is different than theory, some are very openmind but others don't.

Posted: Fri Apr 16, 2004 5:19 am
by Amiga5k
I have only two comments for this one:

One, PB source code is pretty easy to follow for even the marginally trained programmer and should be easy to understand and\or modify to some other basic dialect if necessary in the future (Maybe someone's even written something that can convert PB code into another language such as C? Seems like it shouldn't be too impossible...)

And two, it's been a while since I've used the demo version of PB, but wouldn't that at least allow them to review your code within the IDE if necessary and then decide whether or not to buy the whole enchilada?

Russell