How to Link?

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

How to Link?

Post by Otto »

If you have an obj-file with many functions in it which you link to a program does the compiler link only used functions or do you have an overhead if you have unused functins in the obj?

Thanks in advance
Otto
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: How to Link?

Post by Enrico Maria Giordano »

It strictly depends on the linker. But anyway it would be a (very little) EXE size overhead (who cares?).

EMG
User avatar
Greg Gammon
Posts: 105
Joined: Fri Jun 09, 2006 3:27 pm
Location: Bryan, Texas

Post by Greg Gammon »

Its been awhile since ive worked with very large code programs. Right now I have all of my code in one .prg file. To make it easier to work on, I want to move my code into multiple .prg files (or other files with functions). I can't remember what method to use to make all the files compile and link. Elementary question, but I can't remember how I did this before.....help!
thanks!
G
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Post by Detlef Hoefner »

Greg,

just get your copy of xMate which will do exactly this job in an excellent manner.

Regards,
Detlef
Post Reply