John,
--- John Marshall <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 17, 2002 at 01:03:31PM -0700, Mike McCollister wrote:
> >> $(CC) -o convert.out convert.c
> >> $(OBJCOPY) -O binary convert.out code03e8.bin
> >
> > Yes, old makefile modified over time. However, what exactly does
> > objcopy do in human terms? It seems like an extra step.
>
> It does what "man objcopy" says it does; the aspect of its functionality
> that is most usually used on Palm OS is to rip a section out of a BFD
> executable into a binary .bin/.grc file, much like obj-res only more
> flexibly. Thus it's an alternative step to what you have, not an extra
> one.
>
> But the point of build-prc's new (in 2.2) stand-alone functionality is
> to select as resources the right sections out of the BFD executable
> directly, in the usual cases. This *saves* a step, and enables more
> automatic checking. IMHO that is a better way to pluck the chook :-),
> at least for the typical chooks. For the bizarro chooks, when you need
> to do something atypical, you of course can revert to the flexible
> manual way; like Aaron, I would usually choose objcopy.
OK, I'm beginning to understand. It is just that I am used to the old way :).
Now for something strange:
When I do this:
m68k-palmos-gcc -Wall -W -O2 -palmos4 -nostartfiles \
-o obj/code03e8.out src/code03e8.c -lPalmOSGlue -Lobj -lcommon
m68k-palmos-objcopy -O binary obj/code03e8.out obj/code03e8.bin
my .bin file is 16 Mbytes in size (not a type, real large).
Here is a partial "ls -l" of my obj directory:
-rw-r--r-- 1 Administ None 16777236 Sep 17 16:15 code03e8.bin
-rw-r--r-- 1 Administ None 10208 Sep 17 16:15 code03e8.out
-rw-r--r-- 1 Administ None 6222 Sep 17 15:40 libcommon.a
What is going on with that?
Thanks,
Mike
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/