Any way to compile code usign FASM?

Everything else that doesn't fall into one of the other PB categories.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Any way to compile code usign FASM?

Post 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!
ARGENTINA WORLD CHAMPION
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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
ARGENTINA WORLD CHAMPION
freak
PureBasic Team
PureBasic Team
Posts: 5947
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post 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 :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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.
ARGENTINA WORLD CHAMPION
StarHawk
User
User
Posts: 55
Joined: Sun Nov 02, 2003 7:27 am

Hmmm

Post 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 $$.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Hmmm

Post 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.
ARGENTINA WORLD CHAMPION
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post 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
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
Post Reply