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

Discussion in 'C Programming' started by Rostislav Lyudmirsky, Jan 26, 2004.

  1. 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:

    Thank you very much for help.
    --------------------------------------------------------------------------
    Rostislav "Steve" Lyudmirsky

    http://rvl.netfirms.com
    --------------------------------------------------------------------------
    "The Universe... is a pretty big place. It's bigger than anything, anyone
    has ever dreamed of before. So, if it's just us... it seems like an awful
    waste of space." -- Ellie Arroway (Contact)
     
    Rostislav Lyudmirsky, Jan 26, 2004
    #1
    1. Advertising

  2. Rostislav Lyudmirsky <> spoke thus:

    > 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:


    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 :)

    --
    Christopher Benson-Manica | I *should* know what I'm talking about - if I
    ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
     
    Christopher Benson-Manica, Jan 26, 2004
    #2
    1. Advertising

  3. Christopher Benson-Manica wrote:
    > Rostislav Lyudmirsky <> spoke thus:
    >
    >> 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.)


    Christopher,

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

    >> 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 ???


    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.

    --
    Russell Hanneken

    Remove the 'g' from my address to send me mail.
     
    Russell Hanneken, Jan 26, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    891
    Kevin Spencer
    May 17, 2005
  2. Billy
    Replies:
    2
    Views:
    520
    Billy
    Feb 1, 2006
  3. Thomas Heller
    Replies:
    13
    Views:
    877
    Michele Simionato
    Feb 8, 2007
  4. J. Clifford Dyer

    Re: Partial 1.0 - Partial classes for Python

    J. Clifford Dyer, Feb 8, 2007, in forum: Python
    Replies:
    0
    Views:
    532
    J. Clifford Dyer
    Feb 8, 2007
  5. dexterbot
    Replies:
    2
    Views:
    93
    dexterbot
    Mar 23, 2006
Loading...

Share This Page