473,411 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

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

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: rl*********@abac.com

Thank you very much for help.
--------------------------------------------------------------------------
Rostislav "Steve" Lyudmirsky
rl*********@abac.com
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)
Nov 14 '05 #1
2 1677
Rostislav Lyudmirsky <rl*********@abac.com> 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/dj3...lc-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: rl*********@abac.com


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.
Nov 14 '05 #2
Christopher Benson-Manica wrote:
Rostislav Lyudmirsky <rl*********@abac.com> 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
rg********@pobox.com
Remove the 'g' from my address to send me mail.

Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Adal Chiriliuc | last post by:
Hi. I think there's a bug in the code which builds sys.path for Windows. The default zip archive file name in the debug build of Python is pythonXY_d.zip and not pythonXY.zip. I'm not sure if...
0
by: Rob Young | last post by:
This is the latest in the "Total Non-Programmer" series. Any feedback on the usability of this tutorial would be greatly appreciated. Thanks, Rob How to Build A Web Database (Without...
6
by: nospam | last post by:
I just read on Slash Dot about partial types. Now, is it possible to have a code behind split over two pages but still referencing the same .aspx file??? If so, that would be really nice as...
14
by: Giovanni Bajo | last post by:
Hello, python24.dll is much bigger than python23.dll. This was discussed already on the newsgroup, see the thread starting here:...
9
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. ...
3
by: Eric | last post by:
Hello all, This is a C++ linker question. I'm trying to build an obj file, say foo.obj so that it is pre-linked with its dependencies. However I do not want to generated an executable right...
5
by: Matthew Wilson | last post by:
I wrote some code to create a user and update a user on a remote box by sending emails to that remote box. When I was done, I realized that my create_user function and my update_user function were...
5
by: eranshuman | last post by:
Hi, I m very new to perl I m running an API which have the Buil.pl When Im compiling using perl Build.pl I was getting error : Can't locate Module/Build.pm in @INC (@INC contains:...
4
by: =?Utf-8?B?U2NvdHRSYWREZXY=?= | last post by:
So I have this problem. I'm currently involved in a team project that has a nightly build on a build server and a continuous integration build on the same server. We want to build our c# program...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.