[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] object file break up
From: |
Peter Harrison |
Subject: |
Re: [avr-gcc-list] object file break up |
Date: |
Sun, 12 Feb 2006 13:21:47 +0000 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
Ning Xu wrote:
Hi,
I am thinking of breaking a big avr object file into a set of smaller
object files. Is it possible in theroy? does anyone know any tool out
there that does this?
thanks,
Ning
Building a large program from a number of defferent source files is
generally a good thing. It is also not covered very much in most C
trianing courses and books. This is a shame as it seems to be assumed
that programmers can workl out all the details for themselves and that
is rarely true.
You could do worse that have a look at this site:
http://acc6.its.brooklyn.cuny.edu/~rbharpaz/cis15.htm
which contains course notes advanced C programming. Start with the link
to 'writing larger programs'
this page:
http://www.network-theory.co.uk/docs/gccintro/
give some details about how to turn all those separate source files back
into a single program.
Source files tend to contain functions that are in some way related. For
example, you may gather all the functions that deal with a particular
data structure together in one source file. Since you are likely to be
the only person who knows what function is related to what, it is
unlikely that any automated tool could do the job for you.
Pete Harrison