compile to obj

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

I now have one large source with many reuseable procedures.

Can I place these reuseable procedures into 1 file compile it to an e.g. an 'obj' file and then linking this obj with the remaining source.

What I want is that not the whole source must be compiled each time for procedures that don't change.

Has someone experience with this?

Using Windows 98 SE
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

Why don't you make a DLL with those?

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

I don't want to distribute my program with a DLL
Why don't you make a DLL with those?

El_Choni
Using Windows 98 SE
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Can I place these reuseable procedures into 1 file compile it to an e.g. an
> 'obj' file and then linking this obj with the remaining source.

I don't understand... isn't that similar to just IncludeFiling the procedure
source code? Why not just do that?


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.

that's what I was thinking also..

elecTRONics DOCtor
{registeredPB}P150 32Mb w98/DOS/Linux NO DirX NO IE :wink:
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by redacid.

'coz Cor want´s it "pre-compiled"...

regards,
Redacid
---
Only Amiga makes it possible!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

Yes, thats what I want
'coz Cor want´s it "pre-compiled"...

regards,
Redacid
---
Only Amiga makes it possible!
Using Windows 98 SE
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> 'coz Cor want´s it "pre-compiled"...

I still don't understand... what's the advantage of having it precompiled instead
of just compiling it with your project? Both ways will still produce the same
ASM output in your final executable...


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Hitman.

I think if he wants such thing, try VC++ instead, the use of .obj is very tricky, not for the high-level language users.

Or, split the source then "includefile" back......

Edited by - Hitman on 20 July 2002 20:57:09
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Andre.

The manual says: the compiler is able to compile 300000 lines per minute. So who need something pre-compiled...

Regards
André

*** German PureBasic Support ***
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by redacid.

300000 lines per minute?

So I have to wait for over 3 Minutes to have my latest program compiled.

Of course PB is very fast but if you really have a big program, it could be made faster with pre-compiled files.

I think I will never have a real use for this - my biggest PB-Program has 500 lines... My biggest project ever had 1600 lines (Blitz Basic on Amiga). And with that I only had to wait for about 5 seconds.

regards,
Redacid
---
Only Amiga makes it possible!

Edited by - redacid on 21 July 2002 10:07:23
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> PB is very fast but if you really have a big program, it could be made faster
> with pre-compiled files.

That's very true... when I need to compile an app on a 486 laptop it can take
forever, so I now agree that Cor does have a good point about pre-compiled files.


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

That's why I wanted (since last September or so) the possibility to create PureLibs with PureBasic.
It's the same as having precompiled files...



Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
Post Reply