compile to obj
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
I don't want to distribute my program with a DLL
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
I don't want to distribute my program with a DLL
Using Windows 98 SEWhy don't you make a DLL with those?
El_Choni
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
> 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

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

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
Yes, thats what I want
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Yes, thats what I want
Using Windows 98 SE'coz Cor want´s it "pre-compiled"...
regards,
Redacid
---
Only Amiga makes it possible!
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
> '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

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

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
> 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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm