Partial build/link... is it possible in unix?

  • Thread starter Rostislav Lyudmirsky
  • Start date
R

Rostislav Lyudmirsky

Greetings experts,

If I have a project containing several .c/.f files.
Is it possible to modify just one of the source files and
rebuild executable without involving others?

What I mean is...
I have a project: report01 made from f1.o, f2.o, f3.o
I need to do a quick modification on f1.c and re-build report01
My problem is that someone else already changed f3.o and I don't
want this change to be involved.

Is there a way to _partially_ rebuild report01 with
linking f1.o _without_ linking f2.o and f3.o ???

Any help would be appreciated.
Please cc your reply to my email: (e-mail address removed)

Thank you very much for help.
 
C

Christopher Benson-Manica

Rostislav Lyudmirsky said:
If I have a project containing several .c/.f files.
Is it possible to modify just one of the source files and
rebuild executable without involving others?

(Sounds like a job for GNU make, if you're on a *nix system.)

Your post is off-topic for comp.lang.c. Please visit

http://www.csclub.uwaterloo.ca/u/dj3vande/clc/clc-welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

for posting guidelines and frequently asked questions. Thank you.
Please cc your reply to my email: (e-mail address removed)

Most people here (and on the group(s) you really should have posted to
in the first place, probably comp.unix.programmer or perhaps
comp.os.ms-windows.programmer.win32) will not do this for you. Post
here, read here :)
 
R

Russell Hanneken

Christopher said:
(Sounds like a job for GNU make, if you're on a *nix system.)

Christopher,

I'm not sure GNU make will help him. After the paragraph you quoted,

As I understand him, he's not asking how to rebuild an executable without
rebuilding all the object files on which it depends. Rather, he's asking
how to modify an executable by relinking it with some but not all of the
object files.

Rostislav,

I think Sun's "Incremental Link Editor" (ild) might let you do this. See

http://docs.sun.com/source/806-3567/ild.html

But I don't think ild can help you if you didn't use it originally to build
the executable.

In any case, as Christopher pointed out, comp.lang.c is for discussions
related to the C language. You'll have better luck asking your question in
a forum dedicated to your particular build tools.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top